How to empty array in JavaScript

Arrays
By Jad Joubran · 
Last updated Dec 16, 2017
const apps = ["phone", "calculator", "clock"];

apps.length = 0;

console.log(apps);
[]
Array.length on MDN