Javascript - Cheatsheet

By xngo on September 10, 2019


var str_1 = "Hello"
var str_2 = "World!";
var str = str_1 + str_2; // String concatenation.
var n = str.length;       // String length.


// Print to browser's console.
console.log("Log message to display on browser's console");

About the author

Xuan Ngo is the founder of He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.