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 روز
آرشیو پست ها
How can the code be modified to handle both successful and failed promises?
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));What is the purpose of the "else" statement in JavaScript?
Which CSS property is used to control the transparency of an element?
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));What will this code output? Spot the bug.
Difficulty: Hard😤
for (var i = 0; i < 5; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}What will this code output?
Difficulty: Average😐
let x = 0.1 + 0.2;
let y = 0.3;
if (x === y) {
console.log("Values are equal");
} else {
console.log("Values are not equal");
}Find the error in the code.
Difficulty: Easy🙂
let user = {
name: "John"
age: 30,
isAdmin: true
};
console.log("User's name is: " + user.name);Which of the following keywords is not used to declare a variable in JavaScript?
اکنون در دسترس! پژوهش تلگرام ۲۰۲۵ — مهمترین بینشهای سال 
