Update the duplicate answer to be inline with our stance on extending native prototypes
This commit is contained in:
parent
bd9875d8bb
commit
037340ec24
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Reference in New Issue