Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Writing our first code | Introduction
Introduction to JavaScript

Svep för att visa menyn

book
Writing 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:

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):

Uppgift

Swipe to start coding

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

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 1
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

Awesome!

Completion rate improved to 2

book
Writing 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:

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):

Uppgift

Swipe to start coding

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

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

close

Awesome!

Completion rate improved to 2

Svep för att visa menyn

some-alt