Last updated 1 year ago
Was this helpful?
foo.length = 0 blow up entire values include reference
foo.length = 0
but foo = [] only remove the current array.
foo = []
parseInt('test4'); //? // NaN parseInt('601'); //? // 601 parseInt('601test4'); //? // 601 parseInt('601te23st4'); //? // 601 parseInt('te23st4'); //? // NaN