Skip to content

Commit 3ede877

Browse files
committed
updated basics
1 parent 6ee05c1 commit 3ede877

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

JavaScript Outlines/javaScriptFoundation.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ o The JavaScript engine is in control even before you feed it any JavaScript.
455455
456456
The Process for executing JavaScript:
457457
458-
459458
o First , a chunk of memory is created by the JavaScript engine to execute code in it.
460459
 This is called an execution context and is known as global execution.
461460
 However, the best way to think of this is as a chunk of memory.
@@ -489,6 +488,15 @@ o Fifth , function calls set aside a piece of memory
489488
490489
491490
491+
What is strict mode?
492+
493+
• Strict mode allows you to place a program or a function in a strict operating context.
494+
o To enable strict mode, put 'use strict'; at the beginning of your JavaScript document.
495+
 Strict mode makes debugging easier, errors will be easier to find. It is a string because when it was first implemented only new browsers supported it, so a string was used and when a new browser reads the string, it knows to turn itself into strict mode operating context.
496+
497+
498+
“use strict”;
499+
492500
493501
494502

0 commit comments

Comments
 (0)