intro-events-code-a-long.html/intro-events-code-along.js color-toggle.html/color-toggle.js score-keeper.html/ score-keeper.js to-do.html/to-do.js color-game.html – color-games.js – color-game.css Blogging Questions when adding an event listener methods there are two arguments that are passed, the first is the event being listened for while the other argument is a function. These two rely on one another. The event being listened for, when activated such as […]
Tutorials selectors.html / selectors.js exercise.html / exercise.js demo.html / demo.js Problem Set Website Used webpage-hack.HTML/webpage-hack.JS There is a difference between querySelector() and querySelectorAll(). When you pass in a value for example a “p” tag, both selectors function differently. querySelector will return the first instances of the “p” tag whereas querySelecterAll will return all instances of “p” tags.
Tutorials object-examples.html / object-examples.js movie-db-exercise.html / movie-db-exercise.js Problem Set students.html / students.js BLOG QUESTION I decided to use reddit for this blogging question,
Directory. todo-list-part1.html / todo-list-part1.js challenge.html / challenge.js todo-list-part2.html / todo-list-part2.js array-prob-set.html / array-prob-set.js foreach.html / foreach.js problem set.js files longest.js only_nums.js reverse.js range.js Blogging Question.pop() – The pop method takes out the last element of the arraypush() – The push method pushes a desired value into the array.Unshift() – This method adds new items to the beginning of an array, and returns the new length. […]
Hey guys, You can find the directory for the js basic functions here. functions-examples.html / functions-examples.js functions-problem-set.html / functions-problem-sets.js scope-example.html / scope-example.js The problem set here random-color.html / random-color.js game.html / game.js falling-down-stairs.html / falling-down-stairs.js climbing-the-mountain.html / climbing-the-mountain.js declaring and calling a function are to different things when you declare a function you are basically creating a set of instructions that have “no real purpose”… when you call the […]
DIRECTORY bouncer.html / bouncer.js age-exercise.html / age-exercise.js number-guess.html / number-guess.js while-loops.html / while-loops.js annoy-o-matic.html / annoy-o-matic.js for-loops.html / for-loops.js problem set directory feeling.html / feeling.js running.html / running.js weather.html / weather.js fizzbuzz.html / fizzbuzz.js guess.html / guess.js stairs.html / stairs.js mountain.html / mountain.js Problem Set: Falsy-ness is often used to check whether a given piece of data is a certain data type ( String or Int). in order to change a for loop into a while loop you need to have […]