let anObj = {left:3, right: 2};
console.log(anObj.left); // -> 1
The initial literal should use left: 1 or the log should output // -> 3
The use of // -> for "05." can be a little confusing too since unshift() returns the length of the array and shift returns the number shifted off the array. Neither return the modified array as the use // -> suggests
6
u/senocular Jul 20 '21
Typo for "04.":
The initial literal should use
left: 1or the log should output// -> 3The use of
// ->for "05." can be a little confusing too sinceunshift()returns the length of the array andshiftreturns the number shifted off the array. Neither return the modified array as the use// ->suggests