empty array

PHOTO EMBED

Wed Apr 05 2023 22:13:41 GMT+0000 (Coordinated Universal Time)

Saved by @azcraze #javascript #array

const apps = ["phone", "calculator", "clock"];

apps.length = 0;

console.log(apps);
content_copyCOPY

https://codetogo.io/how-to-empty-array-in-javascript/