Thứ Năm, 10 tháng 3, 2016

delete operator to remove the array value

     If you delete the array value using delete operator, the index value not removed but the value is removed.

Syntax

     delete expression;
Example

       var ar=["red","green","Apricot","Guava"];

       delete ar[1];


Example Program:- (Editor)


Editor is Loading...

Advertisement

0 nhận xét:

Đăng nhận xét

Popular Posts

Tìm kiếm Blog này

Được tạo bởi Blogger.

Morning Charts 07/01/2019 SPX