console.log("Hi there!");
// Prints: Hi there!
let single = 'Wheres my bandit hat?';
let double = "Wheres my bandit hat?";
let amount = 6;
let price = 4.99;
let lateToWork = true;
let isHoliday = false;
let x = null;
JavaScript supports arithmetic operators for:
// Addition
5 + 5;
// Subtraction
10 - 5;
// Multiplication
5 * 10;
// Division
10 / 5;
// Modulo
10 % 5;
let message = "good nite";
console.log(message.length);
// Prints: 9
console.log("howdy".length);
// Prints: 5
// Returns a number between 0 and 1
Math.random();
console.log(Math.floor(5.95));
// Prints: 5
// This line will denote a comment
/*
The below configuration must be
changed before deployment.
*/
let baseUrl = "https://google.com/";
// examples of variables
let name = "Tammy";
const found = false;
var age = 3;
console.log(name, found, age);
// Tammy, false, 3