Coding Quiz Zone
رفتن به کانال در Telegram
✨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!
نمایش بیشتر1 546
مشترکین
اطلاعاتی وجود ندارد24 ساعت
+37 روز
-230 روز
آرشیو پست ها
1 546
const numbers = [1, 2, 3, 4, 5];
const [first, ...rest] = numbers;
rest.push(6);
console.log(numbers);
console.log(rest);
06 ژوئیه 2024, 04:32
06 ژوئیه 2024, ~04:33
1 546
What will be the output of the following code?
Code let a = [1, 2, 3]; let b = a; a = [4, 5, 6]; console.log(b);
06 ژوئیه 2024, 04:31
1 546
What will be the output of the following code?
Code console.log(typeof NaN);
06 ژوئیه 2024, 04:28
1 546
Which of the following methods can be used to add an element to the end of an array?
06 ژوئیه 2024, 04:26
1 546
What will be the output of the following code?
Code let a = [1, 2, 3]; let b = [1, 2, 3]; console.log(a == b);
06 ژوئیه 2024, 04:25
1 546
How do you write an if statement in JavaScript?
06 ژوئیه 2024, 04:20
1 546
What is the correct syntax for referring to an external script called "script.js"?
06 ژوئیه 2024, 04:18
1 546
function outer() {
let x = 20;
function inner() {
x++;
let x = 30;
console.log(x);
}
inner();
}
outer();06 ژوئیه 2024, 04:13
1 546
Question: Which OOP concept is demonstrated by the ability of different classes to define the same method, such as makeSound(), but with different implementations?
06 ژوئیه 2024, 03:52
1 546
class Animal {
public void makeSound() {
System.out.println("Animal sound");
}
}
class Dog extends Animal {
public void makeSound() {
System.out.println("Bark");
}
}
public class Main {
public static void main(String[] args) {
Animal myDog = new Dog();
myDog.makeSound();
}
}
06 ژوئیه 2024, 03:51
06 ژوئیه 2024, ~03:51
1 546
Question: Which keyword is used in Java to define a constant value that cannot be changed once assigned?
06 ژوئیه 2024, 03:04
1 546
return {
bar: "hello"
};
}
function baz() {
return
{
bar: "hello"
};
}
console.log(foo().bar);
console.log(baz().bar);05 ژوئیه 2024, 07:39
1 546
const person = {
name: "Alice",
age: 25
};
Object.freeze(person);
person.age = 30;
person.city = "New York";
console.log(person.age);
console.log(person.city);05 ژوئیه 2024, 01:05
1 546
Which of the following is a valid declaration of a boolean variable in Java?
05 ژوئیه 2024, 00:24
1 546
console.log(message);
var message = "Hello, World!";
console.log(message);
}
sayHello();04 ژوئیه 2024, 13:24
