Sum Double Warm Up
Write a function where given two int values, it will return their sum. Unless the two values are the same, then return double their sum. function sumDouble(a, b){ } sumDouble(1, 2) // 3 sumDouble(3, 2) // 5 sumDouble(2, 2) // 8
Write a function where given two int values, it will return their sum. Unless the two values are the same, then return double their sum. function sumDouble(a, b){ } sumDouble(1, 2) // 3 sumDouble(3, 2) // 5 sumDouble(2, 2) // 8
Write a function where it will take an array of numbers and return true if there are an odd number of odd numbers and return false if there are an even number of odd numbers. Remember the % (modulo) returns the remainder, so if you want to check if n is
JSON stands for JavaScript Object Notation. JSON is a syntax for storing and exchanging data. It will be what we use for storing data in a data base, and using the data from other websites in our own applications. Because we are dealing with objects, you will see many key:
Your Browser (Chrome, IE, Safari, Firefox) has a loop going that is always checking for certain events. These events include mouse clicks (right, left, double), key presses, and even the mouse moving, as well as many others. Here is a list of events. It's overwhelmingly long, so let's focus on
"Back in the day", developers would lay out their entire websites in a table to position things. DON'T EVER DO THAT!! We use CSS and fancy CSS based grid systems like Bootstrap now. Tables are still useful for presenting tabular data, like something you might want to show in an