JavaScript задачи с собеседований
5.27K subscribers
528 photos
27 videos
9 files
274 links
Задачи, тесты и теоретические вопросы по JavaScript. Так же react, vue, angular, node.js

Прислать задачу/вопрос в дар: @cyberJohnny
Сотрудничество: @cyberJohnny
Download Telegram
Kакой из вариантов откроет новое окно?
Anonymous Quiz
👍7💩6
Какой будет результат выполнения кода?

Тест: https://proghub.dev/t/javascript-interview

Добавить свой вопрос
👍8🔥3
В основе node.js лежит движок - ...
Anonymous Quiz
4%
Microsoft Chakra
5%
SpiderMonkey
81%
V8
6%
V16
4%
Proghub Super Engine
💩17👍2
Что вернет данная функция?
Anonymous Quiz
27%
undefined
1%
0
2%
none
70%
2
☝️Объяснение:

В JavaScript var создает переменную в контексте функции, а не контексте текущего scope. Это немного отличается от способа, который принят в типизированных языках, вроде Java или C++.
👍4
Как правильно, используя jQuery, изменить размер шрифта текста "Something"?

Вопрос: https://proghub.dev/q/d89329

Добавить свой вопрос
💩36👎1
☝️Объяснение:

возникнет ошибка `error: Uncaught TypeError: Cannot read property 'name' of undefined`, документация по this + `use strict`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strictmode#SecuringJavaScript
👍6
Выберите все примитивные типы данных
Anonymous Quiz
77%
string
5%
integer
5%
undefined
2%
float
6%
symbol
4%
object
💩74👍10👎4
👍10💩10👎1
☝️Объяснение:

ECMA-262, 3rd edition describes what should happen when null is passed in as the first argument to call():
If thisArg is null or undefined, the called function is passed the global object as the this value. Otherwise, the called function is passed ToObject(thisArg) as the this value.
👍17
Как правильно объявить цикл `for`?
Anonymous Quiz
2%
for (i <= 5; i++)
1%
for i = 1 to 5
2%
for (i = 0; i <= 5)
95%
for (i = 0; i <= 5; i++)
💩41👎2🔥2