inventor of javascript knows it all
Or just use TS and ESLint
But here we accessed a[b] which should be undefined?
the most important question that should be asked is: Why do you insist on bringing misery to this world? Why can't you learn some proper programming language?
Because object gets turned into a string, [object object], but lets be frank, if you need to debug something like this, the codebase sucks and is jeeted to hell and back.
Because JS only allows String or Symbol as key. Anything else if converted to string .
And this is exactly why I have started to hate JS after 5+ years of working with it. A language shouldnt allow this in the first place. If not for TS, I'd have left this toy language for sure.
The result of this is your pull request fails code review and your PM asks you why you;re writing deliberately obfuscatory code.
Because of Non-primitive datatype. It override in that original object..
What is the point of const then? Just for reference assaignment?)
[Object, object]
I have solved this question in one of the interview 😅
Javascript is really mfkr programming language
Great
How can she slap?
undefined error
❤️❤️
interview
@akasaurabhverma