pop() is intentionally generic; this method tin laissez passer on notice move called or applied to objects resembling arrays. Objects which produce non comprise a length belongings reflecting the concluding inwards a serial of consecutive, zero-based numerical properties may non send inwards whatsoever meaningful manner.
If you lot telephone telephone pop() on an empty array, it returns undefined.
Syntax
Array.pop();
Example
var ar=["1st","2nd","3rd","4th"]; ar.pop()
Example Program:- (Editor)
Editor is Loading...
Advertisement
Tidak ada komentar:
Posting Komentar