JavaScript Algorithm: Maximum Edge of a Triangle
Finding the maximum possible value of a triangle’s third side
Today, we write a function called nextSide
that will accept two arguments, side1
and side2
, as integers.
You are given the lengths of two sides of a triangle. Assuming that the side lengths are all positive integers, the goal of the function is to output…