What does the "this" keyword refer to in JavaScript?
Anonymous Quiz
17%
The function itself
43%
The object that is calling the function
19%
The global object (e.g., window in browsers)
21%
The variable defined within the function
What will this code output? Spot the bug.
Difficulty: Hard😤
Difficulty: Hard😤
for (var i = 0; i < 5; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}What does HTML stand for?
Anonymous Quiz
5%
HyperText Mail
6%
Home Tool Markup Language
8%
Hyperlinks and Text Markup Language
81%
Hyper Text Markup Language
What is the default value of the position property in CSS?
Anonymous Quiz
30%
relative
21%
fixed
34%
static
15%
absolute
What is the correct way to create a function in Python?
Anonymous Quiz
15%
function my_function():
60%
def my_function():
19%
def my_function:
6%
create my_function():
JavaScript Task
Check that this string consists of numbers only.
Difficulty: Easy😁
Check that this string consists of numbers only.
Difficulty: Easy😁
string = "1234567890"
How can you check if a value is NOT equal to 5 in JavaScript?
Anonymous Quiz
59%
if (value != 5)
14%
if (value == 5)
16%
if (value =! 5)
11%
if (value <> 5)
📝 CSS display: contents
How can display: contents improve layout flexibility? This property makes elements "transparent" in the DOM, merging their children with the parent container without altering visual display. It helps eliminate unnecessary wrappers and simplifies styling, but be aware of accessibility issues with screen readers.
How can display: contents improve layout flexibility? This property makes elements "transparent" in the DOM, merging their children with the parent container without altering visual display. It helps eliminate unnecessary wrappers and simplifies styling, but be aware of accessibility issues with screen readers.
👍2🔥2
Inline elements in HTML are typically displayed without starting a new line.
Anonymous Quiz
67%
True
33%
False
This media is not supported in your browser
VIEW IN TELEGRAM
The developer gets angry at the tester for finding yet another bug.🤣
🤣5😁1
How can the code be modified to handle both successful and failed promises?
Difficulty: Impossible😈
Difficulty: Impossible😈
const promises = [
Promise.resolve(1),
Promise.reject(new Error('Error'))
];
Promise.all(promises)
.then(results => console.log(results))
.catch(error => console.error(error));
👍1🤯1
Which property controls the stacking order of elements?
Anonymous Quiz
6%
visibility
76%
z-index
6%
opacity
13%
display
Which method adds a new child node to a parent node?
Anonymous Quiz
28%
addChild()
18%
insertNode()
6%
createChild()
48%
appendChild()
Find the error in the code.
Difficulty: Easy😁
Difficulty: Easy😁
function add(a, b) {
return a + b;
}
const result = add(5);
console.log(result);What does the target="_blank" attribute in the <a> tag do?
Anonymous Quiz
78%
Opens the link in a new tab
17%
Opens the link in the same tab
2%
Refreshes the page
3%
Links to an email