How can you make a text bold in CSS?
Anonymous Quiz
14%
text-style: bold;
16%
font-style: bold;
2%
font-bold: true;
67%
font-weight: bold;
JavaScript Task
Get an array of letters from this string.
Difficulty: Easyπ
Get an array of letters from this string.
Difficulty: Easyπ
const str = 'abcde';
Which attribute of the <form> tag is used to specify the URL to which the form data will be sent when it is submitted?
Anonymous Quiz
60%
action
19%
method
17%
target
5%
enctype
Find errors in the code.
Difficulty: Averageπ€¨
Difficulty: Averageπ€¨
function bubbleSort(arr) {
let n = arr.length;
for (let i = 0; i < n - 1; i++) {
for (let j = 0; j < n - i - 1; j++) {
if (j > arr[j + 1]) {
let temp = j;
arr[j] = arr[j + 1];
arr[j + 1] = temp;
}
}
}
return arr;
}
const numbers = [64, 34, 25, 12, 22, 11, 90];
const sortedNumbers = bubbleSort(numbers);
console.log("Sorted array:", sortedNumbers);Which type of Developer you are?
Anonymous Poll
46%
Frontend Developer
5%
Backend Developer
32%
Fullstack Developer
17%
Ctrl c, Ctrl v Developer π
β€2π1
What will this code output? Spot the bug.
Difficulty: Averageπ€¨
Difficulty: Averageπ€¨
const obj = {
value: 42,
getValue: function() {
setTimeout(function() {
console.log(this.value);
}, 1000);
}
};
obj.getValue();π₯2
Which CSS rule can be used to change the cursor when hovering over an element?
Anonymous Quiz
18%
hover: cursor;
58%
cursor: pointer;
3%
hover-cursor: hand;
21%
pointer: hover;
JavaScript Task
Given an array. Print to the console all options for permuting the elements of this array.
Difficulty: Hardπ€
Given an array. Print to the console all options for permuting the elements of this array.
Difficulty: Hardπ€
const arr = [1, 2, 3, 4];
What is the purpose of the "else" statement in JavaScript?
Anonymous Quiz
76%
To execute a block of code unconditionally
9%
To define a function
12%
To declare a variable
3%
To create a loop
What does the CSS property "display: contents;" do?
Anonymous Quiz
12%
Removes the element from the DOM tree along with its child elements.
35%
Removes the container from the document flow, while keeping its child elements.
23%
Replaces all child elements with a text node.
31%
Applies styles to all child elements without changing their position in the flow.
π1
What will this code output? And why?
Difficulty: Averageπ€¨
Difficulty: Averageπ€¨
const numbers = [1, 2, 3, 4, 5];
const result = numbers.map(num => {
if (num % 2 === 0) {
return num * 2;
} else {
return num * 3;
}
}).reduce((acc, curr) => acc + curr);
console.log(result);
Inside which HTML element do we put the JavaScript?
Anonymous Quiz
6%
<javascript>
3%
<scripting>
83%
<script>
8%
<js>
Find errors in the code.
Difficulty: Averageπ€¨
Difficulty: Averageπ€¨
class Rectangle {
constructor(width, height) {
this.width = width;
this.height = height;
}
getArea() {
return width * height;
}
}
const rect = new Rectangle(5, 10);
console.log("Area:", rect.getArea());π2
This media is not supported in your browser
VIEW IN TELEGRAM
Useful CSS Tips
Outline
If you encounter issues with the positioning or visibility of elements on a page, this rule helps you instantly see all the blocks, their borders, and structure. Itβs especially useful when working with complex layouts where elements might overlap or disappear.
#css #tips #outline
Outline
If you encounter issues with the positioning or visibility of elements on a page, this rule helps you instantly see all the blocks, their borders, and structure. Itβs especially useful when working with complex layouts where elements might overlap or disappear.
* {
outline: 4px solid green !important;
}#css #tips #outline
π₯2β€1π1
Which CSS property is used to remove the underlines from links?
Anonymous Poll
71%
text-decoration
8%
line-decoration
8%
underline
13%
remove-underline
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 access an element with a specific id in HTML using JavaScript?
Anonymous Quiz
16%
document.querySelector(".example")
6%
document.getElementsByClassName("example")
3%
document.getElementsByTagName("example")
75%
document.getElementById("example")
Find errors in the code.
Given an array of numbers. Remove numbers from it that have two or more zeros.
Difficulty: Hardπ€
Given an array of numbers. Remove numbers from it that have two or more zeros.
Difficulty: Hardπ€
let numbers = [102, 304, 500, 1002, 20, 404, 80, 7];
function hasTwoOrMoreZeros(num) {
return (num.toString().match(/0/g) && []).length > 2;
}
let filteredNumbers = numbers.filter(num => !hasTwoOrMoreZeros(num));
console.log(filteredNumbers);