Skip to content

ergocell/Solution-for-this-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Solution-for-this-javascript

Code sample JavaScript 1 function find_max(nums) { 2 let max_num = Number.NEGATIVE_INFINITY; // smaller than all other numbers 3 for (let num of nums) { 4 if (num > max_num) { 5 // (Fill in the missing line here) 6 } 7 } 8 return max_num; 9 } Can you answer this correctly? num = max_num

About

Code sample JavaScript 1 function find_max(nums) { 2 let max_num = Number.NEGATIVE_INFINITY; // smaller than all other numbers 3 for (let num of nums) { 4 if (num > max_num) { 5 // (Fill in the missing line here) 6 } 7 } 8 return max_num; 9 } Can you answer this correctly? num = max_num

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors