Use Strict in JavaScript

By | JAVASCRIPT | No Comments

“use strict”, it defines that the javascript code should be executed in strict mode. Declaration of strict mode: we can declare strict mode by adding “use strict” to beggining of a js function. OUTPUT : With “use strict”: Using a variable without declaring it, is not allowed. Activate debugging in…

Read More

Debugging in JavaScript

By | JAVASCRIPT | No Comments

There is very difficulties to write JavaScript code without a debugger. Might your code contain syntax errors, or logical errors, that are difficult to diagnose. Searching errors on your code is called debugging. OUTPUT : First Web Page Activate debugging in your browser (Chrome, IE, Firefox) with F12, and select…

Read More