IT quiz
All questions
Sign in
Sign up
JavaScript
HTML
CSS
PostgreSQL
PHP
Linux
Git
Docker
SCSS
TypeScript
SQL
Vue
DNS
Go
frontend (web)
Redis
backend
Gitlab
CI/CD
Vite
webpack
Node.js
HTTP
Python
Kotlin
Nuxt
Question #40
Author:
admin
tags:
JavaScript
const arr1 = [4, 4, 4]; const arr2 = [6, 6, 6]; const arr3 = arr1.push(...arr2);
What is inside the
arr3
?
[10, 10, 10]
[4, 4, 4, [6, 6, 6]]
[4, 4, 4, 6, 6, 6]
4
[4, 4, 4]
6
[6, 6, 6]
[46, 46, 46]
Answer
Show explanation
The
push
method returns the length of the array, not the array.
Rate the difficulty of the question:
1
2
3
4
5
6
7
8
9
10
easy
hard
←
Previous question (JavaScript)
Next question (JavaScript)
→
Write new comment