
Quiz Javascript Basic Pertemuan 3
Authored by DevComITI DevComITI
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Metode mana yang digunakan untuk menambahkan elemen ke akhir array JavaScript?
shift()
unshift()
push()
pop()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa bentuk operator ternary di JavaScript?
if else
?:
switch case
??
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Loop mana yang mengeksekusi blok kode selama kondisi tertentu benar?
for loop
do...while loop
while loop
foreach
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang akan dihasilkan oleh kode berikut? const arr = [1, 2, 3]; console.log(arr[1]);
tidak terdefinisi
1
2
3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa output dari kode berikut? const num = 10; const result = num > 5 ? 'Greater' : 'Smaller'; console.log(result);
5
10
Greater
Smaller
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Metode manakah yang menghapus elemen terakhir dari sebuah array di JavaScript?
push()
pop()
slice()
splice()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa sintaks dari loop for di JavaScript?
for (initializer; condition; increment)
for (condition; initializer; increment)
for (condition; increment; initializer)
for (increment; condition; initializer)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?