In my quest to determine the greatest among four numbers using JavaScript, I came across the following code snippet.
My exploration on how to achieve this task mainly revolves around array options instead of utilizing individual variables for numbers.
function largest(a, b, c, d){
//Implementation here
}
let a = 10, b = 9, c = 11, d = 7;
//console.log(largest(a, b, c, d));