Questions LLC
Login
or
Sign Up
Ask a New Question
Javascript
Page 5
Questions (277)
JavaScript variables are normally declared using when the value may change or when the value will not change.
let, const const,
1 answer
asked anonymously
7 views
In JavaScript, it is not necessary to declare a variable.
True False
1 answer
asked anonymously
9 views
What will appear in the console after this program runs?
let x = 5; let y = "9"; let z = x + y; console.log(z) 14 an error
1 answer
asked anonymously
16 views
Which one of these is an accurate description of JavaScript?
It is a client-side language. It is not recommended for beginning
1 answer
asked anonymously
7 views
Which line of JavaScript will prevent the page from refreshing after a web form has been submitted?
getDocumentById
1 answer
asked anonymously
5 views
Which of these will print to the terminal where commands are entered?
(1 point) document.getElementById() console.log()
1 answer
asked anonymously
14 views
Which one of these will create a pop-up box?
(1 point) document.getElementById() console.log() document.write() window.alert()
1 answer
asked anonymously
10 views
JavaScript can be used to validate user input.
(1 point) True False
1 answer
asked anonymously
12 views
Which of these is a proper JavaScript comment?
(1 point) #this function will return the user's high score // this function will
1 answer
asked anonymously
8 views
In this first line of a JavaScript for loop, what is i called?
for (let i=1; i<=10; i++){ (1 point) the loop variable the
1 answer
asked anonymously
10 views
In this first line of a JavaScript for loop, what is i <= 10 called?
for (let i = 1 i <= 10 i++){ (1 point) the initialization
1 answer
asked anonymously
9 views
Which element is the JavaScript statement document.register.firstName. value structured according to?
(1 point) script element
1 answer
asked anonymously
13 views
Given this JavaScript array, which line of code will print "tofu" to the console?
const proteinChoices = ["beef", "chicken",
1 answer
asked anonymously
15 views
What is the output of this program?
let weather = "sunny"; if (weather = "rain") { document.write("wear a raincoat."); } else {
1 answer
asked anonymously
10 views
Which symbol is used in JavaScript to check if two values are not equal?
(1 point) 0 != 0 != 0 =/=
1 answer
asked anonymously
9 views
What is the danger of using the document.write() method?
(1 point) It is less secure than getting the element by its ID. It will
1 answer
asked anonymously
11 views
What is the danger of using the document.write() method?
1 answer
asked anonymously
7 views
Which of the following shows the correct way to write the first line of a JavaScript function called sayHello()?
(1 point) def
1 answer
asked anonymously
8 views
Which line of code will return how many elements are in an array called proteinChoices?
(1 point) Length.proteinChoices
1 answer
asked anonymously
5 views
What two parameters are needed for addEventListener()?
(1 point) the event and the action the array and the function the method
1 answer
asked anonymously
8 views
When a JavaScript variable is declared, its data type must be specified.
1 answer
asked anonymously
8 views
Which of the following is a way to declare a variable in JavaScript?
(1 point) let if def then
1 answer
asked anonymously
8 views
When a JavaScript variable is declared, its data type must be specified.
True false
1 answer
asked anonymously
8 views
If you want a line of JavaScript code to check whether a variable is less than 100, which of the following lines of code does
1 answer
asked anonymously
36 views
If you want a line of JavaScript code to check whether two variables are the same, which of the following lines of code does NOT
1 answer
asked anonymously
32 views
If you want a line of JavaScript code to check whether two variables are the same, which of the following lines of code does NOT
1 answer
asked anonymously
30 views
If you want a line of JavaScript code to check whether a variable is less than 100, which of the following lines of code does
1 answer
asked anonymously
27 views
If you want a line of JavaScript code to check whether the result of adding 2 to a variable is less than 10, which of the
1 answer
asked anonymously
35 views
If you want a line of javascript code to check whether two variables are the same, which of the following lines of code does NOT
11 answers
asked anonymously
64 views
If you want a line of JavaScript code to check whether two variables are the same, which of the following lines of code does NOT
1 answer
asked anonymously
30 views
Which element is the JavaScript statement document.register.firstName.value structured according to?
script element DOM CSS
1 answer
asked anonymously
23 views
Which line of JavaScript will prevent the page from refreshing after a web form has been submitted?
getDocumentById
1 answer
asked anonymously
5 views
Which attribute will allow the function checkPhoneNumber() to run when the user submits the form?
onClick= "return
3 answers
asked anonymously
11 views
Paulo wants to learn how to validate user input to be sure that whatever the user enters follows the pattern that he wants.
1 answer
asked anonymously
10 views
What is the danger of using the document.write() method?
It is less secure than getting the element by its ID. It will delete all
1 answer
asked anonymously
10 views
Which one of these is an accurate description of JavaScript?
It is a client-side language. It is not recommended for beginning
1 answer
asked anonymously
6 views
What is the danger of using the document.write() method?
It is less secure than getting the element by its ID. It will delete all
1 answer
asked anonymously
8 views
Which of the following is a way to declare a variable in JavaScript?
let if def then
1 answer
asked anonymously
5 views
Which of the following shows the correct way to write the first line of a JavaScript function called sayHello()?
def sayHello() {
1 answer
asked anonymously
10 views
What two parameters are needed for addEventListener()?
the event and the action the array and the function the method and the
1 answer
asked anonymously
16 views
Which of the following functions properly removes all green and blue from a pixel and returns the modified pixel?
var RED = 0;
1 answer
asked anonymously
5 views
Question: 1
We want to write a brightness filter that brightens a given pixel. Which of the following instructions would brighten
1 answer
asked anonymously
6 views
A JavaScript array is similar to which Python structure?
a dictionary a stack a list an integer
1 answer
asked anonymously
11 views
JavaScript variables are normally declared using _____ when the value may change or _____ when the value will not change.
let,
3 answers
asked anonymously
11 views
Which symbol is used in JavaScript to check if two values are not equal?
!= !== =/= =|
1 answer
asked anonymously
12 views
In this first line of a JavaScript for loop, what is i called?
for (let i=1; i<=10; i++){
3 answers
asked anonymously
8 views
When a JavaScript variable is declared, its data type must be specified.
True False
1 answer
asked anonymously
9 views
Which of these will create an array designed for items that will change as the program progresses?
const flavors = []; let
1 answer
asked anonymously
18 views
Which of these is a proper JavaScript comment?
# this function will return the user’s high score // this function will return
1 answer
asked anonymously
10 views
mAKE JAVASCRIPT CODE to make a game
3 answers
asked anonymously
19 views
Pages
1
2
3
4
5
6
Parent Categories (15)
Coding
Coding languages
Coding/Programming
Computer Programming
Computer Science/Programming
Front-end Development
Game Development
HTML
HTML/CSS
Programming
Programming Language
Programming Languages
Programming or Computer Science
Web Development
Web development languages