Update the duplicate answer to be inline with our stance on extending native prototypes

This commit is contained in:
Darcy Clarke 2014-12-05 18:20:13 -05:00
parent bd9875d8bb
commit 037340ec24
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ The majority of the questions were plucked from an [oksoclap](http://oksoclap.co
* Explain the same-origin policy with regards to JavaScript.
* Make this work:
```javascript
[1,2,3,4,5].duplicate(); // [1,2,3,4,5,1,2,3,4,5]
duplicate([1,2,3,4,5]); // [1,2,3,4,5,1,2,3,4,5]
```
* Why is it called a Ternary expression, what does the word "Ternary" indicate?
* What is `"use strict";`? what are the advantages and disadvantages to using it?