Skip to content

Commit a38bc52

Browse files
committed
updated
1 parent a1938ed commit a38bc52

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

arr.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
let arr = [1,2,3,4];
2-
console.log(arr);
3-
arr.push(5,6);
4-
console.log(arr);
1+
console.log(x);
2+
var x = 10; // global scope

callapplybind.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function newf(val1, val2, val3) {
77
var obj = {
88
age: 24,
99
};
10-
// newf.call(obj, 1, 2, 3);
10+
newf.call(obj, 1, 2, 3);
1111

1212
// //* apply :
1313
// newf.apply(obj, [1, 2, 3]); //gives same values

0 commit comments

Comments
 (0)