Code to go logo
Created using Figma
Use Cases
Contribute
How to skip values from array destructuring in JavaScript
Syntax
By Jad Joubran ·
Last updated Dec 16, 2018
const [, , elevation] = [52.369661, 4.897243, 3]; console.log(elevation);
3
Dec 16, 2018
1
Jad Joubran
See answer
1
Jad Joubran
Skip values from Array destructuring
on MDN
Learn JavaScript step by step
Related use cases
How to destructure from object in JavaScript
How to destructure with default value in JavaScript