+ 1

Introduction to JavaScript solved

Spotting errors let name =“Ann” let age= 34; console.log(name); console.log(age);

5th Jun 2025, 4:58 PM
Christian Francis
Christian Francis - avatar
2 Respuestas
+ 3
missing quotation marks around Ann as it is a text(a string data type) and strings should be enclosed in quotation marks. Write it as "Ann". That will work fine.
5th Jun 2025, 5:01 PM
Afnan Irtesum Chowdhury
Afnan Irtesum Chowdhury - avatar
+ 2
Oh just the quaton marks
5th Jun 2025, 5:02 PM
Christian Francis
Christian Francis - avatar
OSZAR »