Dassault Systèmes interview question

2)How to clear an array by different way

Interview Answers

Anonymous

24 Aug 2018

A = []; orelse; A .length=0; orelse; loop it till length is 0 and pop all elements

3

Anonymous

26 Sept 2021

arr.splice(0, arr.length)