strenkel / jshero

JS Hero - Learn to code: JavaScript online tutorial with interactive exercises
https://www.jshero.net
Other
28 stars 10 forks source link

clarify the return value of the push method #57

Closed fionatagious closed 2 years ago

strenkel commented 2 years ago

Hi! Thank you for your pull request! I'm very, very sorry that I forgot it.

You are quite right that push returns the new length of the array. But I'm not sure if it is good to mention here. The goal of JS Hero is not to write a detailed description of the mentioned methods. I also don't mentioned that push() can have more than one argument. The description should explain the basic and typical usuage of the method.