If you understand conditionals, then you'll write better code. Else, you'll be a noob 4 life.
DOM stands for Document Object Model. The DOM is (more or less) what we call the HTML once it all loads in your web page. Watch this video to see it in action.
addEventListener listens for when a user "clicks" on a button. It can also be used to listen for when the user is typing, when the page fully loads, and much, much, more.
getElementById() and getElementsByClassName() are similar to our friend querySelector(). Watch this video to learn how they can come in handy.
Variables declared inside of our functions, are not accessible outside of our function. Not without some fancy moves. Watch this video to learn more.
Using the which event property we can tell if the user pressed the keys down. Actually, we can even "listen" to see what keys specifically they are typing. Let's make the NSA proud! This is 'merica goddammit and I'll listen in if I want to!
Let's take all the "images" and assign pull out each "image" with the function forEach()
The fundamentals of creating a good function. Let's start by adding two numbers together
How many letters? Create a function that answers this question.
Nobody likes the way for loops look. They're like the Elephant Man of coding. But do yourself a favor, and just learn to look past their appearance. They're a tool that will serve you well on your journey.
This week we'll build a SoundCloud music app, using the SoundCloud API. Along the way we'll learn about objects, anonymous functions, Promises, classList, localStorage, and more.
Read through the API documentation, and refactor the SoundCloud code into our project.
What's the difference between a basic "function" and an "anonymous function?" Find out in this lesson!
Of course we could wrap all our code in multiple functions, but after writing 10,000 lines of code you might be able to imagine how this could get sloppy. So instead, we'll use an object. In this video I'll show you how!
Grab some tea, and join me! In this video I'll introduce you to: classList, appendChild() and createElement()
Let's go back to the SoundCloud API so we can get some music playing with embed