clear emptry element in array js code example Example: javascript clear an array let arr = [3.14, 7]; arr = [];//make sure there is no other reference