Javascript code

Anyone can tell me what is this ___ in function? And how this code is working? Thank you in advance :slightly_smiling_face:

If your code is correct it will run…or error will show

You don’t need to add anything into those ___ spots in the code. Try running the code. From what you have shown in your screenshot, it should accept your answer to the puzzle.

The instructions only have one step:

  • Change max = num to max = larger(max, num)

This is the official solution for this puzzle (click arrow to reveal further details):

sample solution code
function larger(a, b) {
  return a > b ? a : b;

function maximum(array) {
  let max = 0;
  for (let num of array) {
    max = larger(max, num);
  return max;

Full post here: To the Max explainer

Further explanation is given in the comments of the main post by @Grasshopper_Ben: