TGViewer
Channel Public Channel
Programming Quiz Channel

Programming Quiz Channel

@programming_quizz

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
Subscribers
797
Photos
81
Videos
4
Links
0

Showing posts older than #310 · Back to latest

Older Posts 20 shown
Post #298 2.17K
  • 🥱 1
Post #296
Channel photo updated
Post #295
Channel name was changed to «Programming Quiz Channel»
Post #294 1.19K
What will this code output? Spot the bug.
Difficulty: Hard😤

for (var i = 0; i < 5; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}
  • ❤ 6
  • 🔥 3
  • 👍 1
Post #292 1K
#memes
  • 🤣 10
  • 😁 1
Post #291 923
3 rounding methods in JavaScript
  • 🔥 2
  • ❤ 1
  • 👍 1
Post #290 831
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));
  • ❤ 3
  • 👍 1
  • 🔥 1
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →