I know what some() means in JavaScript but I don't understand what it means in this specific code block. Your help would be appreciated.
function myDisplayer(some) {
document.getElementById("demo").innerHTML = some;
}
function myCalculator(num1, num2) {
let sum = num1 + num2;
return sum;
}
let result = myCalculator(5, 5);
myDisplayer(result);
function myDisplayer(some) {
document.getElementById("demo").innerHTML = some;
}
The some here in this code is an argument of type number, you can change the argument name to anything you like except reserved keywords.
Also, your question mention, what is some(), it is incorrect with reference to the code as you asked for a function named as some and your code refer to an argument named as some.