Javascript Beginner Bootcamp (2020) -

But before you build the next billion-dollar startup, you need to learn how to talk to the computer.

let favoriteBand = "The Weeknd"; // String let albumsOwned = 3; // Number let isGoingOnTour = true; // Boolean console.log(typeof favoriteBand); // Output: "string" Functions are reusable spells. You define them once, then call them whenever you need. javascript beginner bootcamp (2020)

// Define the function function greetUser(userName) return "Hey " + userName + ", welcome to 2020!"; But before you build the next billion-dollar startup,

const double = (num) => return num * 2; ; console.log(double(21)); // Output: 42 Your code needs to think. Use if , else if , and else to create branches. In 2020, JavaScript is everywhere

You’ve picked the perfect time to learn JavaScript. In 2020, JavaScript is everywhere. It runs your favorite websites, powers serverless functions, controls robots, and even builds mobile apps.

Use const by default. Only use let when you know the value needs to change. Module 3: Data Types (The Building Blocks) JavaScript understands different types of information. Here are the big four for beginners: