Skip to content

Commit 5d498a8

Browse files
authored
Update arrObj.js
1 parent c726aaf commit 5d498a8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Interview-Questions/arrObj.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,13 @@ const arrayOfOddNumbers = [1, 3, 5];
159159
arrayOfOddNumbers[100] = 199;
160160
console.log(arrayOfOddNumbers.length);
161161

162+
163+
164+
// OUTPUT
165+
class MyClass extends (String, Array) {
166+
construct() {}
167+
}
168+
169+
const a = new MyClass()
170+
171+
console.log(a instanceof Array); // true

0 commit comments

Comments
 (0)