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
显示更多780
订阅者
-124 小时
+27 天
+1830 天
帖子存档
Find the error in the code.
Difficulty: Easy😁
number = 5
text = "Quantity: " + number
print(text)How do you make each word in a text start with a capital letter in CSS?
How do you write "Hello World" in an alert box in JavaScript?
Which of the following elements is considered a global HTML structural element?
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));Find the error in the code.
Difficulty: Average🤨
def divide_numbers(a, b):
return a / b
result = divide_numbers(10, 0)
print(f"The result is: {result}")HTML Tip💡
You can add dark mode to your website with just one line of code.
#html #tips
