- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Why does the JavaScript need to start with “;”?
JavaScript uses a semi-colon (;) to avoid any confusion in code, especially the beginning of a new line.
Example
You can still use the following to avoid any chaos in the code −
return { 'var':myVal } // using semi-colon; (function( $ ) { // }
- Related Articles
- Why does the indexing start with zero in C# arrays?
- Why does C++ need the scope resolution operator?
- Why Does the Indian Tech Market Need More Java Developers?
- Why does Python sometimes take so long to start on Windows?
- Why does one need a mentor in life to grow?\n
- Why does the soil need leveling? Give at least 4 points.
- Why do we need weakMaps in Javascript?
- Why do some people need to use a dialysis machine ? What does the machine do ?
- Does the plant need food?
- How to set when the transition effect will start with JavaScript?
- Why C/C++ variables doesn’t start with numbers
- Why does tooth decay start when the pH of mouth is lower than 5.5?
- Does Linux Need Antivirus?
- Why plants need water?
- Why plants need oxygen?

Advertisements