Created
January 3, 2020 00:22
-
-
Save jfrites/dee4fa83c7513f5cba20578c81a103d4 to your computer and use it in GitHub Desktop.
Basic JavaScript Examples from FS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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