Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
52 views
in General by (65.1k points)
closed by

Common Errors in JavaScript.

1 Answer

+1 vote
by (68.9k points)
selected by
 
Best answer

Since JavaScript is an interpreted language, there are some common mistakes that wont display the code correctly on your browser. 

1. Missing quotation marks - document . write(“hello world) 

2. Case sensitive - document -> cannot be written as Document 

3. Missing parenthesis/brackets - document . write(“hello world” )

4. Missing 'script' tag in the program (either opening or closing)

5. Variable names misspelt.

Related questions

0 votes
1 answer
asked Nov 13, 2024 in General by LokeshVerma (65.1k points)
0 votes
1 answer
0 votes
1 answer
asked Nov 13, 2024 in General by LokeshVerma (65.1k points)
0 votes
1 answer
asked Nov 13, 2024 in General by LokeshVerma (65.1k points)

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...