for in fix

alert( key ); // name, age, 30 -> last should be isAdmin
This commit is contained in:
mnedzka 2017-03-31 12:51:43 +02:00 committed by GitHub
parent d110eb3ea8
commit 6a22f08b41

View file

@ -352,7 +352,7 @@ let user = {
for(let key in user) {
// keys
alert( key ); // name, age, 30
alert( key ); // name, age, isAdmin
// values for the keys
alert( user[key] ); // John, 30, true
}