I have a code which is expected to return 'undefined' or any error but it gives output as mentioned.
let i = (x, c) => {
c(x);
};
i(20, (undefined) => {
let j = undefined;
console.log(j);
});
function y(undefined) {
let a = undefined;
console.log(a);
}
y(90);
How reserved words works and change behavior if used in function arguments?