Skip to content

Instantly share code, notes, and snippets.

@jfrites
Created January 3, 2020 00:22
Show Gist options
  • Save jfrites/dee4fa83c7513f5cba20578c81a103d4 to your computer and use it in GitHub Desktop.
Save jfrites/dee4fa83c7513f5cba20578c81a103d4 to your computer and use it in GitHub Desktop.
Basic JavaScript Examples from FS
//toUpperCase
const someString = "I am excited to begin coding";
console.log(someString.toUpperCase());
//variable assignment
let myFirstName = "Jason";
console.log(myFirstName);
let myFavoriteNum = 62;
console.log(myFavoriteNum);
let havingFun = 10 === 10;
console.log(havingFun);
//sum
let num1 = 854;
let num2 = 385;
let num3 = 779;
let myFirstSum = num1 + num2 + num3;
console.log(myFirstSum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment