From 7ed9d6a04ff411877132e1334f54a055a2d6cec6 Mon Sep 17 00:00:00 2001 From: yumin2 <35511938+yumin2@users.noreply.github.com> Date: Wed, 14 Nov 2018 14:39:33 -0500 Subject: [PATCH 1/2] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 391a54b..69de8b6 100644 --- a/README.md +++ b/README.md @@ -2901,7 +2901,7 @@ console.log(myFunc("a","b","c","d")); 2. 0 2 4 3. undefined 4. ReferenceError - +//number of args expected by function Answer: a) 2 2 2 ### 10. What would be the output of following code ? @@ -2949,7 +2949,8 @@ var person1 = new Person('John'); 2. John John 3. John undefined 4. John John - + +//Function.name Answer: 1) John Person ## Scopes From 74fea791ca69b4635656cc34ee1065371488b602 Mon Sep 17 00:00:00 2001 From: yumin2 <35511938+yumin2@users.noreply.github.com> Date: Sun, 6 Jun 2021 22:22:15 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 69de8b6..eaeba11 100644 --- a/README.md +++ b/README.md @@ -1147,7 +1147,7 @@ if(typeof person.salary === 'undefined'){ } ``` ## Question 31. Write a function called `Clone` which takes an object and creates a object copy of it but not copy deep property of object. - +Wrong. ```javascript var objectLit = {foo : 'Bar'}; var cloneObj = Clone(obj); // Clone is the function which you have to write