Answers for "print string and number js"

2

how to print numbers in javascript

for (var i = 1; i <= 100; i++) {
 console.log(i);
}
//the boolean or the second term in the for statement
//which in this case is i <= 100 makes the console print
// numbers 1-100 
//KEY: REPLACE !)) WITH THE NUMBER U WANT IT TO GO UNTIL
Posted by: Guest on June-05-2020
1

javascript strings and numbers

let message = 'hello'; //string
let sum = 5;           //number
let x = -15.25;        //number
let year = "2021";     //string
Posted by: Guest on May-31-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language