Seksjon 3. Kapittel 30
single
Null
Sveip for å vise menyen
What is Null
The data type null represents that there is no value. It is a primitive value in javascript.
To have a better understanding of null, we must know these two features about null:
nullprovides the non-existent value or empty value.nullhas to be assigned to a variable as it is not assigned by default (unlike theundefined).
12let number = null; console.log(number);
Oppgave
Swipe to start coding
Declare a variable selectColor and assign the value of null to the variable and display the value of the variable.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 30
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår