The array named items has length 2. What does items.push("c") return?
توضیح
push appends the supplied element and returns the array's new length, which is 3. Returning "c" would confuse the appended value with the method's numeric result.
push appends the supplied element and returns the array's new length, which is 3. Returning "c" would confuse the appended value with the method's numeric result.