Modern Javascript Course
Going to Learn and Be Comfortable with Modern Javascript Syntax
Course url: https://www.educative.io/courses/simplifying-javascript-handy-guide/N8XV31KZxJp
Useful insights:
const
variables cannot be reassigned to, but their values can change (e.g. if they are a list or an object, you can add values to them)let
variables are block-scoped - they only exist within the block. They also can’t be reassigned within the same block.- They are useful for the case where you’re doing a for loop, returning something each time (e.g. the index), and you want to return the index at that specific iteration, not the index at the very end (as it would be if you used
var
).
- They are useful for the case where you’re doing a for loop, returning something each time (e.g. the index), and you want to return the index at that specific iteration, not the index at the very end (as it would be if you used
- Javascript template literals:
function greet(name) {
return `Hi, ${name}`;
}
console.log(greet('Leo'));
- Modern Javascript is very functional—as such, avoid mutations, and
push
to arrays
Outline:
- Arrays in Javascript, and the spread operator 202006091927
- Array methods in Javascript 202006160146
- Containers in Javascript 202006142245
- Javascript Conditionals 202006160016
- Arrow functions 202006160127
COMPLETED: Do the full-stack open course 202006071749
uid: 202006070113 tags: #projects #programming #javascript