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 #20
Author:
admin
tags:
JavaScript
const obj = { x: 1 }; console.log(obj . x); // many spaces
What will the console output be?
1
{ x: 1 }
obj, x
obj . x
No output, an error will occur.
Answer
Show explanation
A dot is just a "Member Access" operator.
You are not surprised by the presence of spaces or line feed when using other operators, are you?
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