
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 JavaScript Need to Start with 'use strict'?
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( $ ) { // }
Advertisements