<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
const arr = ["a",["b","c",["d"],[undefined,"g",["x"],["y"]]],"h",["l"]];
const [,[,,,[a=1,,[b=2]]]]=arr;
console.log(a,b);
/*补充代码*/
</script>
</body>
</html>