function find_max(nums) { let max_num = Number.NEGATIVE_INFINITY; // smaller than all other numbers for (let num of nums) { if (num > max_num) { // (Fill in the missing line here) } } return max_num; } Select an answer num = max_num max_num += 1 max_num = num max_num += num
Added by Brian A.
Close
Step 1
Let max num=Number.NEGATIVE INFINITY; // smaller than all other numbers Show more…
Show all steps
Your feedback will help us improve your experience
Madhur L and 95 other Calculus 3 educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a program in C++ to find largest number among three numbers.
James K.
Write a Python Program to Find the Largest Among Three Numbers
Haricharan G.
Recommended Textbooks
Calculus: Early Transcendentals
Thomas Calculus
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD