wiki/content/20201111093227-javascript_rangeerror.md

11 lines
242 B
Markdown
Raw Permalink Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-11
2024-05-06 20:40:05 +00:00
id: 67198605-05a4-4a1b-9083-d4e445b38344
title: JavaScript RangeError
---
``` javascript
// Call console with too many arguments
console.log.apply(console, new Array(1000000000)); // RangeError: Invalid array length
```