JSE1 - Final Test
JSE1 - Final Test
JSE1
Final Test
Índice
CONGRATULATIONS! .................................................................................................................................................................................3
YOU HAVE COMPLETED JAVASCRIPT ESSENTIALS 1 (JSE) .................................................................................................................................. 3
JSE1 FINAL TEST ..........................................................................................................................................................................................5
You are now prepared to take the final challenge, the Mock Test, which will help you review the most important
information you've read and test the skills and knowledge you've gained throughout the course.
Having completed the course, you're also prepared to attempt the qualification JSE − Certified JavaScript
Entry-Level Programmer certification exam, which is an interim step to the JSA: Certified Associate
JavaScript Programmer certification, as well as the starting point to launching a career in software development,
JavaScript programming, and related technologies.
Ready?
We have declared an array of animals: let animals ["canary", "dog", "cat"]:. Then we call the
method animals.push("hamster"); .As a result, the animals array will look like this:
a. ["hamster", "canary", "dog", "cat"]
b. [ "canary", "dog", "cat", "hamster"]
c. [ "canary", "dog", "cat"]
d. ["hamster"]
Which of the following loop instructions checks the loop continuation condition only after the iteration
has been completed?
a. do … while
b. while
c. for … in
d. for
The JavaScript code includes the console.log ("http://somethingNew.org"); command. Its execution will:
a. cause the page http://test.org to be loaded into the browser.
b. display on the console information about the progress of the http://somethingNew.org page loading.
c. display the following message on the console: "http://somethingNew.org".
d. send a log with information about the currently executed script to the indicated address
http://somethingNew.org.
Using the string interpolation technique, we can create the string "I do not like travelling by
plane" and store it in the msg variable using the command:
a. let means = "plane";
let msg = "I do not like travelling by ${ means }";
b. let means = "plane";
let msg = ' I do not like travelling by $(means} ';
c. let means = "plane";
let msg = " I do not like travelling by \{ means \}";
d. let means = "plane";
let msg = ' I do not like travelling by {means} ';
In the daysOfWeek variable, we place an array with the names of the days of the week. To reverse the
order of the array elements, we should call:
a. days0fWeek. reverse();
b. daysOfWeek.order(-1):
c. days0fWeek = reverse(davsOfWeek);
d. daysOfWeek.invert();
The temp array contains air temperature data measured over a period of time. We want to display the
minimal temperature, and to do so we write the following code:
temp.forEach(e => min = min › e ? e : min);
console.log(min);
In the code, we use the variable sum, which should be previously declared as follows:
a. let min = temp[01:
b. It's not necessary, as it will be declared automatically on first use.
c. let min;
d. let min = 0;