100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4,6 TrustPilot
logo-home
Exam (elaborations)

JavaScript - Updated for (Exam Question & Answers ).docx

Rating
-
Sold
-
Pages
16
Grade
A+
Uploaded on
09-11-2025
Written in
2025/2026

JavaScript - Updated for (Exam Question & Answers ).docx

Institution
Informatics Exa 1 Questio & Answer 2025
Course
Informatics Exa 1 Questio & Answer 2025










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Informatics Exa 1 Questio & Answer 2025
Course
Informatics Exa 1 Questio & Answer 2025

Document information

Uploaded on
November 9, 2025
Number of pages
16
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

JavaScript - Updated for 2023-2024
(Exam Question & Answers )
var x = 10;
function mutliplyNumber(x) {
try {
const y = 15;
y = ( 2 * x);
return y;
}
catch {
return (3 * x);
}
finally {
return (4 * x);
}
}
x = multiplyNumber(x)
console.log(x)




What is the console output? - CORRECT ANSWERS
✔✔40

,JavaScript - Updated for 2023-2024
(Exam Question & Answers )

You are creating an application that requires a title and a
numbered list. Complete the code by selection the correct
option - CORRECT ANSWERS
✔✔document.getElementByID("title") textContent="Wish
List";


document.getElementByID("showList").value=text;


1. The form will submit to a script named contact
2. The form will submit only if the first name and last
name are entered
3. The form will not submit because it is missing the
submission method - CORRECT ANSWERS ✔✔True
True
False


Analyze the DOM Tree in the image. You need to insert an
img element that will be the first element in the body. -
CORRECT ANSWERS
✔✔document.appendChild("img")
src
querySelector("body")

, JavaScript - Updated for 2023-2024
(Exam Question & Answers )
append(newimgElement);


You need to create and populate a list of customers and
identify customers who placed orders in the last 3 years -
CORRECT ANSWERS ✔✔currentDate.getFullYear()
orderDate.getFullYear()


Your company offers a 10 percent discount if the day of
the week is Wednesday.


Complete the code by selecting the correct option from
each drop-down list. - CORRECT ANSWERS ✔✔switch
(day){
case "wednesday"
default:


When you choose spicy and click order, the warning fails
to display.


You need to solve the problem.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
NatashaKate Florida A&M University
Follow You need to be logged in order to follow users or courses
Sold
16
Member since
1 year
Number of followers
0
Documents
2584
Last sold
4 weeks ago
Natashakate

1,0

1 reviews

5
0
4
0
3
0
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions