Hello World!
Part of the Fundamentals section of Coddy's JavaScript journey — lesson 2 of 77.
The "Hello World!" is a simple program that outputs Hello World! to the console.
In JavaScript, we use console.log() to print words to the console. The words go inside quotation marks.
Let's take a look at the "Hello World!" program in JavaScript:
console.log("Hello World!")Challenge
BeginnerUse the code view to write a program that outputs Hello World!
Note that anything inside quotation marks is case sensitive. For example:
console.log("Hello World!")console.log("hello world!")are different things (notice the capital letters in the first line).
Cheat sheet
To print to the console use console.log():
console.log("Hello World!")Try it yourself
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Fundamentals
4Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 3Type Coercion7Bill Split Calculator
Welcome MessageCalculating The Tip And Total2Variables
NumbersStringBooleanNaming ConventionsEmpty VariablesRecap - Initialize VariablesConstants3Operators Part 1
Arithmetic OperatorsModulo OperatorArithmetic ShortcutsComparison OperatorsStrict vs Loose EqualityRecap - Simple Math6Basic IO
OutputOutput with VariablesType Conversion - Part 1Type Conversion - Part 2Recap - Till 120Recap - True or False