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).
  • 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:

COMPLETED: Do the full-stack open course 202006071749


uid: 202006070113 tags: #projects #programming #javascript


Date
February 22, 2023