Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

I get the answer right when I hut Run.

<!doctype html>
<html>
<head>
<title>JS Array Operations</title>
</head>
<body>
<script>
let numbers = [1, 22, 333, 4444];
// perform operations
numbers.reverse().pop();
numbers.reverse().push(55555);
document.write(numbers);
</script>
</body>

</html>

It gives me "22,333,4444,55555" which is the req output.
Help if someone knows what's wrong
by

2 Answers

kshitijrana14
Please mention course name , level id and lesson id
mythilee
javascript level 11 lesson 3

Login / Signup to Answer the Question.