freecodecamp : JS Algorithms and Data Structures
learn basic JS by building a RPG
i'm doing a freecodecamp tutorial project as i read this ebook to put the stuff i'm reading into practice! i'll be putting some notes here that as well.
array: let order = ["first", "second", "third"];
ids and classes go in quotes "" ... took me a minute or 2 trying to figure this out in the excersise LOL
you can also declare variables with let
, use const
for variables that don't need to be reassigned
you can change text inside an element with innerText
to grab an object's key you gotta use the dot notation. if the key has spaces then you use brackets.