From 037340ec243edaed1335efef14e84893f33cb31f Mon Sep 17 00:00:00 2001 From: Darcy Clarke Date: Fri, 5 Dec 2014 18:20:13 -0500 Subject: [PATCH] Update the duplicate answer to be inline with our stance on extending native prototypes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 07d74ea..b9171aa 100644 --- a/README.md +++ b/README.md @@ -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?