tech 2
Minggu, 27 Januari 2019
Delete Operator To Take Away The Array Value
If yous delete the array value using delete operator, the index value non removed merely the value is removed.
Syntax
delete expression;
Example
var ar=["red","green","Apricot","Guava"];
delete ar[1];
Example Program:- (Editor)
Editor is Loading...
Output:-
Advertisement
Tidak ada komentar:
Posting Komentar
Posting Lebih Baru
Posting Lama
Beranda
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar