0
Can someone help me with this basic question:)?
I dont know why this is not working: var banan = 10 % 5; document.log("banan")
6 Answers
+ 3
Remove the quotation marks that surround the variable name, banan. Quotation marks tell Javascript that whatever is between them is a literal string. You want it to print the contents of the variable banan, so leave the quotes out.
+ 2
try
console.log(banan)
you do not enclose a variable in quotes, or it will be treated as text.
0
It dont work
0
var banan = 10 % 5;
document.log (banan)
0
Possibly you mean:
console.log (banan)
0
Remove the quotation marks.
console.log(banan) will work as expected.