Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Writing our first code | Introduction
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Introduction to JavaScript (staging)

bookWriting our first code

The very first exercise every programmer goes through is the printing Hello world! message to the console. Let's do it with JavaScript: you should use the console.log() statement like in the example:

The very first exercise every programmer goes through is the printing Hello world! message to the console. Let's do it with JavaScript: you should use the console.log() statement like in the example:

console.log('Hello world!');

Try running this code and you will see a sentence in parentheses printed in the console.

You can put any other message (inside the quotes):

console.log('What a good idea!')
Taak

Swipe to start coding

Print another one message. Use the console.log() to print this message "I am learning JavaScript"

Oplossing

console.log('Hello world!');

Try running this code and you will see a sentence in parentheses printed in the console.

You can put any other message (inside the quotes):

console.log('What a good idea!')
Taak

Swipe to start coding

Print another one message. Use the console.log() to print this message "I am learning JavaScript"

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 1
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

Suggested prompts:

What does console.log() do in JavaScript?

Can I print numbers or variables using console.log()?

How do I print multiple messages in a row?

close

bookWriting our first code

Veeg om het menu te tonen

The very first exercise every programmer goes through is the printing Hello world! message to the console. Let's do it with JavaScript: you should use the console.log() statement like in the example:

The very first exercise every programmer goes through is the printing Hello world! message to the console. Let's do it with JavaScript: you should use the console.log() statement like in the example:

console.log('Hello world!');

Try running this code and you will see a sentence in parentheses printed in the console.

You can put any other message (inside the quotes):

console.log('What a good idea!')
Taak

Swipe to start coding

Print another one message. Use the console.log() to print this message "I am learning JavaScript"

Oplossing

console.log('Hello world!');

Try running this code and you will see a sentence in parentheses printed in the console.

You can put any other message (inside the quotes):

console.log('What a good idea!')
Taak

Swipe to start coding

Print another one message. Use the console.log() to print this message "I am learning JavaScript"

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 1
single

single

some-alt