uk
Feedback

Не попадись на ботовода! Telemetrio знаходить і позначає такі канали мітками 👉 Хочеш бачити мітку, оформляй підписку

Programming Quiz Channel

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

Показати більше
803
Підписники
Немає даних24 години
+37 днів
+1230 днів
Архів дописів
3 rounding methods in JavaScript
3 rounding methods in JavaScript

Find the error in the code. Difficulty: Hard😤
function processArray(arr) {
    let result = [];
    
    arr.forEach(item => {
        if (item != '') { 
            result.push(item);
        } else if (typeof item === 'number') { 
            result.push(item * 2);
        }
    });

    return result;
}

let data = [1, '', 2, 3, '', 5, null, undefined, 'hello'];

console.log(processArray(data));

Which HTML tag is used to define an internal style sheet?
Anonymous voting

Event delegation in Javascript!! Commonly used for handling clicks on dynamically added elements, managing events for a large
Event delegation in Javascript!! Commonly used for handling clicks on dynamically added elements, managing events for a large number of similar elements efficiently, and simplifying event management in complex user interfaces.

How do you add a background color for all

elements?

Anonymous voting

Find the error in the code. Difficulty: Easy😁
number = 5
text = "Quantity: " + number

print(text)

#memes
#memes

Who is making the Web standards?
Anonymous voting

What is the correct syntax for referring to an external script called "xxx.js"?
Anonymous voting

JavaScript Neat Tricks you should know
+5
JavaScript Neat Tricks you should know

Which CSS rule can be used to change the cursor when hovering over an element?
Anonymous voting

What will this code output? Difficulty: Average🤨
const obj1 = { name: 'Alice' };
const obj2 = { name: 'Alice' };

if (obj1 === obj2) {
    console.log("true");
} else {
    console.log("false");
}

What is the correct HTML for adding a background color?
Anonymous voting

You must know these handy JavaScript array methods.
+8
You must know these handy JavaScript array methods.

#memes
#memes

What is a correct syntax to output "Hello World" in Python?
Anonymous voting

Find the error in the code. The answer should be: 15 Difficulty: Average😐
function sumArray(arr) {
    let sum = 0;
    arr.forEach(function(num) {
        sum =+ num;
    });
    return sum;
}

let numbers = [1, 2, 3, 4, 5];
console.log(sumArray(numbers));

#js #tips
#js #tips

How do you create a class in JavaScript?
Anonymous voting