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😁
function greet(name) {
console.log("Hello, " + name);
}
greet();Find errors in the code.
Difficulty: Average🤨
class Rectangle {
constructor(width, height) {
this.width = width;
this.height = height;
}
getArea() {
return width * height;
}
}
const rect = new Rectangle(5, 10);
console.log("Area:", rect.getArea());Where in an HTML document is the correct place to refer to an external style sheet?
What is a correct syntax to output "Hello World" in Python?
Find the error in the code.
Difficulty: Average😐
numbers = [1, 2, 3, 4, 5]
total = 0
for number in numbers:
total += number
print("The total is: " + total)How can you ensure that an element always stays at the bottom of its parent container?
What does the push() method do for an array in JavaScript?
What is the correct way to create a variable with the value of 5 in Python?
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();