Need help with this javascript assignment /* Although the track times appear correctly, the album time does not! Currently, each of the following variables is a string instead of a number. Use your knowledge of JavaScript to update all of these values into numbers so that they add correctly. */ let albumRuntime = trackOneRuntime + trackTwoRuntime + trackThreeRuntime + trackFourRuntime + trackFiveRuntime + trackSixRuntime + trackSevenRuntime; // Do not change anything below here. run(albumRuntime);

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question

please solve within 30 minutes.

Need help with this javascript assignment
/*
Although the track times appear correctly, the album
time does not! Currently, each of the following
variables is a string instead of a number.
Use your knowledge of JavaScript to update all of
these values into numbers so that they add correctly.
*/
let albumRuntime = trackOneRuntime +
trackTwoRuntime
trackFourRuntime
+ trackThreeRuntime +
+ trackFiveRuntime +
trackSixRuntime + trackSeven Runtime;
// Do not change anything below here.
run(albumRuntime);
Transcribed Image Text:Need help with this javascript assignment /* Although the track times appear correctly, the album time does not! Currently, each of the following variables is a string instead of a number. Use your knowledge of JavaScript to update all of these values into numbers so that they add correctly. */ let albumRuntime = trackOneRuntime + trackTwoRuntime trackFourRuntime + trackThreeRuntime + + trackFiveRuntime + trackSixRuntime + trackSeven Runtime; // Do not change anything below here. run(albumRuntime);
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT