Kuis Materi JavaScript

Kuis Materi JavaScript

11th Grade

10 Qs

quiz-placeholder

Similar activities

Swimming

Swimming

KG - Professional Development

10 Qs

YouCode Scratch Quiz

YouCode Scratch Quiz

KG - 12th Grade

10 Qs

KIỂM TRA TX L2-2-2122

KIỂM TRA TX L2-2-2122

1st Grade - University

10 Qs

OCR GCSE Economics - 2.8 - Role of Money & Financial Markets

OCR GCSE Economics - 2.8 - Role of Money & Financial Markets

9th - 11th Grade

10 Qs

Christmas

Christmas

KG - 12th Grade

10 Qs

2nd Quarter Pre-Test

2nd Quarter Pre-Test

11th Grade

10 Qs

the beatles trivia

the beatles trivia

6th Grade - University

11 Qs

Fiiller

Fiiller

9th - 12th Grade

10 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?