3.3.2021 |

What would the JavaScript error say?

var numbers = [1, 2, 3, 4, 5];
numbers.length = 3;

Answer: In JS it is possible to set the length of a array. => numbers = [1, 2, 3]

Zur Übersicht

Mehr vom DevSquad...

Jan Sauer

l10n i18n a11y

Jan Sauer

Java15