/stuff-to-do

Stuff to do over the break

Stuff to do over break

7 things to do over the break, other than sleep, eat and watch Netflix which are required.

  1. Typing Practice
  2. Variables & Data Types
  3. Conditionals, Booleans, & Truthys
  4. Functions
  5. Array Methods
  6. Arrays, Objects & Destructuring
  7. Code Wars

1. Typing Practice

The faster you type, the easier it is to code

2. Variables and Data Types

The building blocks of ALL our code. Here are some questions for you to research -- hint write some code to make sure you understand the answers.

  • What are the different data types available in Javascript?
  • Which data types are passed by reference? Which are passed by value? Whats the difference between passing by reference and passing by value?
  • What is meant by variable scope in Javascript?
  • Whats the difference between let, const and var?
  • What will this code output? Why? How can you fix it?
for(var i = 0; i < 5; i++){
   setTimeout(()=>console.log(i), 0);
}

Resources

3. Conditionals, Booleans, & Truthys

We use conditionals ALL. THE. TIME. Get comfortable with the logic of if / else statements. Make sure you can write ternaries. Understand boolean logic and logical operators. Understand what data types in Javascript are "truthy" and which are "falsy". What does "truthy" and "falsy" even mean?

Resources

4. Functions

  • What are return values? What is the default return value of a function?
  • What are function parameters?
  • How do you make a default parameter and how do you use it?
  • What's the difference between parameters and arguments?
  • What's the difference between a variable and a parameter?
  • What does it mean when we say "functions are first class objects" in Javascript?

Resources

5. Array Methods

If you have done the React module, do the array methods spotlight challenge

6. Arrays / Objects and Destructuring

If you have done the React module, do the arrays / objects destructuring challenge again

7. Code Wars

Here are some fun code wars challenges to try (8kyu is the easiest rank, 1kyu is the hardest)