Golf par & strokes

function golfScore(par, strokes) {

  // Only change code below this line

  return “Change Me”;

  // Only change code above this line

}

// Change these values to test

golfScore(5, 4);

I only just realised that (par, strokes) in the top line are like placeholders for the actual result. 

The bottom line of (5,4) are the actual results

So:

par = 5

strokes = 4

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s