Kuis Materi JavaScript

Kuis Materi JavaScript

11th Grade

10 Qs

quiz-placeholder

Similar activities

Used to / be used to / get used to

Used to / be used to / get used to

7th Grade - Professional Development

10 Qs

İSİMLER

İSİMLER

9th - 12th Grade

10 Qs

NOKTALAMA

NOKTALAMA

6th - 12th Grade

10 Qs

Literasi Siswa Kelas X, 2 Oktober 2024

Literasi Siswa Kelas X, 2 Oktober 2024

10th Grade - University

12 Qs

Talking about drama

Talking about drama

6th - 12th Grade

14 Qs

books

books

2nd Grade - University

10 Qs

TV Scriptwriting

TV Scriptwriting

9th - 12th Grade

12 Qs

dragon ball

dragon ball

7th - 11th Grade

11 Qs

Kuis Materi JavaScript

Kuis Materi JavaScript

Assessment

Quiz

Other

11th Grade

Practice Problem

Medium

Created by

Dwina Sophiyah

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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";

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?