19 Use getters and setters to Control Access to an Object - ES6 - FreeCodeCamp EXPLAINED Solution

preview_player
Показать описание
FreeCodeCamp lesson walkthrough - explained.
To assist you if you get stuck, and breakdown core concepts the material is trying to convey. Please leave a comment if you're still confused and I'll do my best to respond within 24hrs.

FreeCodeCamp - Javascript Algorithms & Data Structures Course
ES6 Sub-course
Challenge 19 Use getters and setters to Control Access to an Object
Рекомендации по теме
Комментарии
Автор

it's a coincidence how right as I get to the getters and setter challenge you upload this 😭 I'm actually sort of struggling too so this will help

ArnaNaya
Автор

I did it myself and received this error "RangeError: Maximum call stack size exceeded". I copied and pasted your code and got the same error.

genpmaporraaaa
Автор

very confusing for me ... its been couple of challenge already...and i keep asking for hint....i really need a mentor for this

lavielle
Автор

Such nonsense, I didn’t even understand 5% of what he was doing there, so I dismissed the nonsense)

dogvscatfunny
Автор

Thanks man, was really usefull explanation

pabloolivera
Автор

Wait, so the reason why we set Fahrenheit value (this._temperature) to its conversion (newTemp * 9.0 / 5 + 32) in the setter is that after passing some specific value (e.g. 76) it could transform the whole self to: newTemp = (76 - 32) / 9/5 to give the calculated value of Celsius? It's pretty complicated way to do a simple thing.

green-jinkots
Автор

Thanks, man! Clear instructions and really helpful.

buzzcodez