
Kuis Materi JavaScript

Quiz
•
Other
•
11th Grade
•
Medium
Dwina Sophiyah
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa perbedaan utama antara let dan const dalam JavaScript?
let tidak bisa diubah nilainya, sedangkan const bisa
const tidak bisa diubah nilainya, sedangkan let bisa
const hanya bisa digunakan untuk tipe data array
Tidak ada perbedaan
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa output dari kode berikut?
let fruits = ["apple", "banana", "cherry"];
console.log(fruits[1]);
apple
banana
cherry
undefined
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa output dari kode berikut?
let x = "5";
let y = 3;
console.log(x + y);
8
"8"
"53"
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa hasil dari kode berikut ini?
let age = 18;
if (age >= 18) {
console.log("Adult");
} else {
console.log("Minor");
}
Minor
Adult
Error
Tidak ada output
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Manakah yang benar untuk mendeklarasikan variabel di JavaScript?
let myVar = 10;
variable myVar = 10;
const myVar := 10;
var myVar == 10;
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa yang akan dicetak oleh kode berikut?
function greet() {
return "Hello, World!";
}
console.log(greet());
Hello, World!
Undefined
Error
greet
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Manakah dari berikut ini yang akan menghasilkan error jika kita mencoba untuk mengubah nilainya?
let x = 5; x = 10;
var y = 3; y = 7;
const z = 2; z = 8;
let w = "Hello"; w = "World";
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
10 questions
KUIS PEMWEB

Quiz
•
11th Grade
10 questions
Arduino- Exercise 4 Random Dice

Quiz
•
11th Grade
10 questions
Senangnya membuat ngoding bareng

Quiz
•
9th - 12th Grade
6 questions
Atividade 3 -06/11/2023

Quiz
•
11th Grade
10 questions
Belajar Construct 2.1

Quiz
•
9th - 12th Grade
15 questions
Quiz Pemrograman JavaScript

Quiz
•
1st Grade - University
10 questions
JavaScript Fundamentals Assessment

Quiz
•
11th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Chaffey

Quiz
•
9th - 12th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
12 questions
Macromolecules

Lesson
•
9th - 12th Grade
12 questions
Classifying Polys - 1.1

Quiz
•
10th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade