Home  >  Q&A  >  body text

When the delete keyword deletes an element, what type is its value by default? Can the default be 0?

<script>                                                                                                                                                                                                                         ’s ’ to Scale's ’ s ’ s ’ ’ s 1 ’ t - 1 1- t

# arr[2]=27;

arr[4]="University";

delete arr[1];

document.write(arr) ;

                                                                                                                                                                                                                                                                               
雪碧雪碧2269 days ago1442

reply all(1)I'll reply

  • 手机用户_1533373742

    手机用户_15333737422018-08-04 17:20:16

    You will know the output of console.log(typeof delete)

    reply
    0
  • Cancelreply