Skip to content

Commit f8cab3b

Browse files
authored
Update function-context.js
corrected the answer. As window.name is there which is not undefined
1 parent c18a37c commit f8cab3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coding-exercise/function-context.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ function User(name, age) {
1515

1616
var user = new User('John', 25);
1717
var profile = user.getProfile();
18-
profile(); //I'm undefined, undefined yrs old
18+
profile(); //I'm , undefined yrs old

0 commit comments

Comments
 (0)