PrepAway - Latest Free Exam Questions & Answers

You create the following JavaScript code:

You create the following JavaScript code:



You have the following requirements:

You must invoke a function that displays the vehicle information within the following HTML element:

<div id=-display-></div>

The output of the function must appear on thewebpage as follows:

Vehicle Color is silver

Stay safe!

Vehicle TransmissionType is manual

Big machine!

You need to invoke the JavaScript function to display the required output in the HTML element.

Which two code segments should you use? (Each correct answer presents a complete solution. Choose two.)



A. Option A

B. Option B

C. Option C

D. Option D

E. Option E

Explanation:

The second argument should be silver.

The third argument should be a number less than 4.


Leave a Reply