What keyword is used to define a constant variable?
Anonymous Quiz
60%
const
8%
let
18%
var
14%
constant
How do you create a function in JS?
Anonymous Quiz
67%
function myFunc(){}
12%
func myFunc()
10%
def myFunc()
12%
function: myFunc()
Which operator is used for equality comparison?
Anonymous Quiz
10%
A)=
23%
B)==
2%
C) ===
65%
D) Both B and C
How do you write an alert in JS?
Anonymous Quiz
73%
A) alert("Hi!")
5%
B) msg("Hi!")
16%
C) console.log("Hi!")
5%
D) prompt("Hi!")
Which keyword declares a variable that can be reassigned?
Anonymous Quiz
10%
A) var
6%
B) const
10%
C) let
73%
D) Both A and C
What is the output of typeof 42?
Anonymous Quiz
81%
A) "number"
6%
B) "string"
8%
C) "boolean"
4%
D) "object"
😁2
What does console.log (true && false) return?
Anonymous Quiz
5%
A) true
75%
B) false
11%
C)0
9%
D) 1
How do you declare an array?
Anonymous Quiz
71%
A) var arr = [1,2,3];
12%
B) var arr = (1,2,3);
4%
C) var arr ={1,2,3};
12%
D) array arr = [1,2,3];
How do you access the first element of arr?
Anonymous Quiz
82%
A) arr[0]
8%
B) arr[1]
4%
C) arr.first
6%
D) arr[0,0]
❤1
What does CSS stand for?
Anonymous Quiz
9%
Computer Style Sheets
82%
Cascading Style Sheets
5%
Creative Style Syntax
5%
Colorful Style Sheets
Which CSS property is used to change the text color?
Anonymous Quiz
5%
text-style
19%
font-color
73%
color
3%
background-color
Inline CSS is added using:
Anonymous Quiz
8%
The <link> tag
77%
The style attribute
13%
The <css> tag
2%
The <noscript> tag
Which selector selects the first element of its type inside a parent?
Anonymous Quiz
59%
:first-child
10%
:nth-child(1)
19%
:first-of-type
12%
::before
Which property sets the style of a list marker?
Anonymous Quiz
12%
list-decoration
28%
list-marker
57%
list-style
3%
text-style
Which is the correct way to set a color using HEX?
Anonymous Quiz
87%
color: #ff0000;
7%
color: rgb(255,0,0);
6%
color: (255,0,0);
0%
color: red();
The value rgba(0,0,0,0.5) means:
Anonymous Quiz
13%
Red color with 50% opacity
63%
Black color with 50% opacity
20%
White with 50% opacity
4%
Transparent red