Strict Objects


Now, that works fine. But, how will the code execute in Strict Mode? One way to find out is to transfer our code to a (.js) page and invoke Stict Mode at the top of the program.

Invoke Strict Mode ...
{% highlight html linenos %}
//Strict Objects
'use strict';
{% endhighlight %}
Place at the top of program.

Let's try that.

Copy and paste the contents of the entire (.js) file into the Firefox Web-console ... Then, hit the Enter key.

    Finito!