How to empty array in JavaScript

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

apps.length = 0;

console.log(apps);
[]