stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
JS Seytech Flashcards | StudBud
Explore
/
JS Seytech
JS Seytech
26 terms
·
StudBud Administration
·
14 plays
JS Beginning - Intermedia
Flashcards
26 cards
F
Practice quiz
P
Host live
L
Questions
26
Answers
1
What is the result of 5 + 5 + "5" in JavaScript?
"105"
10
105
555
2
What HTTP method does not exist?
POST
GET
CHECK
DELETE
3
Which function is used to round a number to the nearest integer in JavaScript?
Math.random()
Math.floor()
Math.round()
Math.ceil()
4
What is the correct syntax for referring to an external script called "script.js"?
<script src="script.js">
<script href="script.js">
<script ext="script.js">
<script name="script.js">
5
What is the purpose of the
.innerHTML
property in JavaScript?
To get the text content of an element
To get the attributes of an element
To set or return the CSS styles of an element
To set or return the HTML content of an element
6
Which HTTP status code indicates a successful response?
100
400
200
All are successful
7
What outcome do we expect to see in the console?
false
true
undefined
30
8
What is the result of
typeof NaN
in JavaScript?
"number"
"object"
"undefined"
"NaN"
9
Which method is used to remove the last element of an array in JavaScript?
.pop()
.push()
.delete()
.remove()
10
What does
"DOM"
stand for?
Document Oriented Model
Document Object Model
Dynamic Object Model
Data Object Model
11
What does the acronym "API" stand for in web development?
Automated Process Integration
Advanced Programming Interface
Application Programming Interface
Application Protocol Injection
12
Which JavaScript function can be used to convert a string to an integer?
convertToInt( )
parseFloat( )
toInteger( )
parseInt( )
13
What outcome do we expect to see in the console?
True
False
14
Which keyword is used to declare a variable in JavaScript?
All above
const
let
var
15
What is the result of the expression
typeof undefined
in JavaScript?
"variable"
"undefined"
"null"
"object"
16
What output looks like
Math.random( )
return?
1.86687033642100365
0.6673589579826706
-3573013579431064
756899347598735
17
What returns
fetch( )
function?
Response data
Request data
undefined
Promise
18
What outcome do we expect to see in the console?
Couldn't count
Total count: 7
Total count: 0
Total count: "undefined"
19
How do you cancel a recurring function set by
setInterval()
in JavaScript?
Using the stopInterval( ) function
There's no way to cancel it once it's started
Setting the interval to null
Using the clearInterval( ) function
20
Which operator is used to assign a value to a variable in JavaScript?
===
==
--->
=
21
What happens if you call
console.log( )
without any arguments?
It throws an error
It has no effect; it does not log anything
It logs an empty message to the console
It logs the word "undefined" to the console
22
Which symbol(s) is used for comments in JavaScript?
/
//
/* */
#
23
What is the correct syntax for a
for
loop in JavaScript?
for (let i = 0; i < 5; i++) { }
for (i = 0; i < 5; i++) { }
for (i = 0; i++) { }
for (i < 5; i++) { }
24
A function what is passed into another function as an argument is:
method
high order function
callback
class
25
Is this expression truthy or falsie:
false && true && false || true
True
False
26
Which method is used to convert a string to uppercase letters in JavaScript?
.upperCase()
.toUpperCase()
.toUpper()
.toUpperCasing()