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

Sveip for å vise menyen

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

Oppgave

Swipe to start coding

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

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 1
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

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

Oppgave

Swipe to start coding

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

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

close

Awesome!

Completion rate improved to 2

Sveip for å vise menyen

some-alt