Heey.
Ik heb weer hulp nodig, heb al op het internet gezocht geen oplossingen gevonden.
Hier de opdracht:
Conclusion: Part 1
Let's do a quick review!
Data types
a. numbers - just use them like regular numbers
b. strings - anything between a " " is a string. Words have to be strings.
c. booleans - can only be true or false.
Variables
We store data values in variables. We can bring back the values of these variables by typing the variable name.
Manipulating numbers & strings
a. numbers - comparison operators, modulo
b. strings - length, substring
console.log( )
Prints into the console whatever we put in the parentheses.
Instructions
Read the comment on line 1.
On line 3, create a variable myJob and give it a string value.
On line 4, log the length of myJob to the console.
Mijn code:
// On line 2, write your first comment! It can be anthing! // Hell yea var myJob = "Vuilnisman"; console.log(myJob.length);
En toch geeft die aan dat het fout is.
Iemand een idee, en vertel ook aub wat ik fout doe zo leer ik.