lnbrown1869 lnbrown1869
  • 10-01-2024
  • Computers and Technology
contestada

Create a function that returns the smaller number as a string.
Examples:
smallerNum("21", "44") ➞ "21"
smallerNum("1500", "1") ➞ "1"
smallerNum("5", "5") ➞ "5"

smallerNum = (n1,n2) => {
n1 *= 1;
n2 *= 1;
var arr = [n1,n2];
return Math.min(...arr);
}
smallerNum("100", "4");

Respuesta :

Otras preguntas

ways to organize data
Players will be issued what color cards for fouls, depending on the seriousness of the penalty.
Who was the black male, living in boston, who was one of the five americans killed in the boston massacre? brainly?
four-fifths of a number minus two is greater than three-tenths of twice that number
how much of a cell’s life is taken up by MITOSIS based on your data? 100=(16/36)*100
Colin's annual salary is $36,792. If he is paid, monthly, what is the gross monthly pay?
To cite a website in the text of your work and link it to the entry in Works Cited, use the author's _______. A. First name, last name B. Last name, first name
Which expression results on a rational number?
Find k so that the line containing the points (-5,k) and (2,10) is parallel to the line containing the points (5,5) and (1,-4)
multiply decimals-1.9×8.43