Testing Objects for Properties - Free Code Camp Help - Basic Javascript Algorithms & Data Structures

preview_player
Показать описание
Free Code Camp Material - To help you learn and walk-through step-by-step.

JavaScript Algorithms and Data Structures Section
Basic Javascript Sub-Section
Testing Objects for Properties Challenge
Рекомендации по теме
Комментарии
Автор

I don"t get why it should be obj[checkprop]? How do you know it"s a variable?

rkitsune
Автор

cant i just check if the property is there by looking to see if its there? This just seems like an overcomplicated solution for something that doesn't require any code.

ev_dash
Автор

I think they updated this lesson on the website since mine doesn't look like this

zuxun
Автор

none of this is making sense. Like oh "do this other complicated equation to add a property to a variable" like fuck that, if I'm doing javascript for work I'm just gonna go straight to the variable and add in the property that way. Like, in what real world situation would you need to have to use these overcomplicated solutions over the much easier ones?

ev_dash
join shbcf.ru