Course · Section 2: JavaScript Fundamentals – Part 1 · Lecture 13: Basic Operators
Implement `avg(a, b)` returning the floor of the average of two non-negative integers.
+ 1 hidden test run on Submit.
Math.floor((a + b) / 2) gives the integer average of two non-negative numbers.
Run your code to see results.