7 things to do over the break, other than sleep, eat and watch Netflix which are required.
- Typing Practice
- Variables & Data Types
- Conditionals, Booleans, & Truthys
- Functions
- Array Methods
- Arrays, Objects & Destructuring
- Code Wars
The faster you type, the easier it is to code
- typing.io code based typing practice
- vscode typing test extension Practice typing within vscode
- typeracer Race your friends!
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);
}
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?
- 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?
If you have done the React module, do the array methods spotlight challenge
If you have done the React module, do the arrays / objects destructuring challenge again
Here are some fun code wars challenges to try (8kyu is the easiest rank, 1kyu is the hardest)