Skip to content

Commit 74f092a

Browse files
Update 1-hoisting.js
1 parent a20c4d0 commit 74f092a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎Exercises/1-hoisting.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
'use strict';
22

3-
const fn = null;
3+
const fn = function fn() {
4+
console.log(value);
5+
var value = 10;
6+
};
47

58
module.exports = { fn };

0 commit comments

Comments
 (0)