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 #1
Author:
admin
tags:
JavaScript
let x = 1; let y = 2; x = y = x; console.log(x, y);
What will the console output be?
1, 1
1, 2
2, 1
2, 2
Answer
Show explanation
Operator
=
has right-to-left associativity.
Rate the difficulty of the question:
1
2
3
4
5
6
7
8
9
10
easy
hard
Next question (JavaScript)
→
Write new comment