JavaScript Object Properties Are A Bit.... Strange

preview_player
Показать описание
JavaScript object properties might not work how you expect. Don't make this coding mistake with your JS objects!

Prepping for your frontend interviews? Use code "conner" for a discount on my product FrontendExpert:

Рекомендации по теме
Комментарии
Автор

Isnt lua similar in a way?
If you wanted to reference something that has signs / spaces, youd use a string to find it like you did there

WrongStar
Автор

that happens in any language, you can't index a property that has special characters

whoman
Автор

You can change first name and make it as variable instead string

xokxpyv
Автор

Could you explain Recursion in JavaScript?

hayouhayou
Автор

That's why you learn proper naming conventions and stick to them.

colbyberger
Автор

I think we can solve this by using the square brackets instead of dot

Truth__Nature
Автор

Isnt he the person who kept Javascript in goat tire and said python is so confusing ☠️

bharathkudupu