Programming Quiz Channel
Открыть в Telegram
Programming quizzes and knowledge tests Short quizzes on programming, logic and computer science. Test and improve your coding knowledge. Join 👉 https://rebrand.ly/bigdatachannels DMCA: @disclosure_bds Contact: @mldatascientist
Больше737
Подписчики
+324 часа
+87 дней
+2830 день
Архив постов
The task is to write a palindrome function.
Difficulty: Hard😤
isPalindrome("radar"); // true
isPalindrome("hello"); // falseFind the error in the code.
Difficulty: Average😐
const data = [1, 2, 3, 4, 5];
function getEvenNumbers(arr) {
return arr.filter(num => num % 2 = 0);
}
console.log(getEvenNumbers(data));Which of the following is NOT a valid JavaScript variable name?
Which statement is used to execute a function in JavaScript?
Find the error in the code.
Difficulty: Easy😁
function greet(name) {
console.log("Hello, " + name);
}
greet();Find the error in the code.
The answer should be: 0, 1
Difficulty: Average😐
const createCounter = () => {
let count = 0;
return () => {
console.log(count++);
};
};
const counter1 = createCounter();
const counter2 = createCounter();
counter1();
counter2();What is the main difference between the "==" and "===" operators in JavaScript?
How can you select all the elements with class "example" in CSS?
TEST
Write a calculator in JavaScript with minimal code
Difficulty: Easy🙂
function calculate(expression) {
try {
let result = eval(expression);
if (isNaN(result)) {
throw new Error("Invalid expression");
}
return result;
} catch (e) {
return "Error: " + e.message;
}
}
let userInput = prompt("Enter an arithmetic expression (for example, 2 + 2):");
if (userInput !== null) {
console.log("Result:", calculate(userInput));
}
Уже доступно! Исследование Telegram 2025 — ключевые инсайты года 
