While practicing the javascript exercises, i was confused to understand why arguments passed for a JS function is not validated with function definition
Example:
function display() {
console.log('my function');
}
if i called display(12), code still executes and prints 'my function'.
Same way there are many combinations that will also pass if there are mismatch in arguments vs function parameters
while this type of functional calling don't work in other languages like Java