Linked Questions

231 votes
1 answer
162k views

I have started to explore the Node.js and wrote many demo web application, to understand the flow of Node.js, Express.js, jade, etc.. But one thing I came across recently, is the statement "use ...
user avatar
89 votes
4 answers
61k views

Jshint.com is giving the error: Line 36: var signin_found; Missing "use strict" statement.
user avatar
68 votes
2 answers
13k views

What are the additional benefits of "use strict" other than preventing bad coding? For instance, does it allow the script to run faster because the interpreter knows the code its optimized?
TMacGyver's user avatar
  • 1,291
27 votes
1 answer
1k views

Why do we still have to use quoted string literal to switch on strict in JS? Surely something a little more strongly 'typed' could be used here, like calling a built in function, say, Object.UseStrict(...
ProfK's user avatar
  • 51.4k
25 votes
2 answers
2k views

I have been reading many JavaScript codes recently and I was wondering of what are the benefits of using "use strict". Any idea would be very much appreciated.
Tepken Vannkorn's user avatar
32 votes
1 answer
856 views

Possible Duplicate: What does “use strict” do in JavaScript, and what is the reasoning behind it? Actually I know what the use strict does in JavaScript as the question asked here: What does "...
Afshin Mehrabani's user avatar
14 votes
2 answers
2k views

I'm refactoring an old AngularJS 1.3 project. One of the things I noticed is that the person who made this started every single file of AngularJS code with: (function () { 'use strict'; angular....
Sophie's user avatar
  • 193
7 votes
2 answers
275 views

What is the difference between: (function () {'use strict';})(); and "use strict". I don't understand when or why I would use one over the other? I think that one declares the complete external ...
Starkemp315's user avatar
7 votes
0 answers
253 views

I am currently learning JavaScript and I would like to ask if it is really necessary/advisable to do 'use strict' in all of my JavaSript functions? In line with this, will it improve the overall ...
seulgibear's user avatar
0 votes
1 answer
249 views

I am trying to write AngularJS and JavaScript function but I have a question about the keyword 'use strict'. Say the code is something like below kept in a html file within script tag. Now remember we ...
user avatar
3 votes
0 answers
239 views

I am interested to learn when using strict mode, where does it apply to. I know that I cannot put it once in my file and be done, rather it has to be in the functions, etc. I was told if I put it in ...
stoXe's user avatar
  • 313
1 vote
0 answers
40 views

In JS, I understand the difference between the non-strict equality operator == and the strict equality operator === and how they evaluate different expressions differently, for example 0 == false but ...
applemonkey496's user avatar
0 votes
0 answers
35 views

I have a variable. var variable; It is variable="Hello World";. Now, without using var and deleting it: document.write(myVar); delete myVar; console.log("This should be an error because ...
TogiCoder's user avatar
2192 votes
17 answers
4.4m views

Is there a way to empty an array and if so possibly with .remove()? For instance, A = [1,2,3,4]; How can I empty that?
akano1's user avatar
  • 41.9k

15 30 50 per page
1
2 3 4 5
8