x is null (explicitly set to no value). y is undefined (not assigned any value).
@008abhishekrout210 сағат бұрын
arrow functions (=>) behave differently when it comes to the this keyword. Unlike regular functions, arrow functions do not have their own this. Instead, they inherit this from their lexical scope (the surrounding code where the function is defined).
@008abhishekrout210 сағат бұрын
Hey one question , the out that interviewer console.log(...arr1,...arr2) give correct answer but the fellow candidate did try same but assign it to different variables that got him syntax error why??