String var str_1 = "Hello" var str_2 = "World!"; var str = str_1 + str_2; // String concatenation. var n = str.length; // String length. Debugging // Print to browser's console. console.log("Log message to display on browser's console"); Javascript, Cheatsheet About the author Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.