0

biggestNumber is a function that receives 3 numbers (a,b,c). Function will return the biggest number. I am using Javascript

It is starting (the code): const biggestNumber=(a,b,c)=>{

26th Jul 2022, 2:51 PM
k gready
k gready - avatar
10 ответов
+ 4
k gready , we like to know what programming language you are trying to use.
26th Jul 2022, 2:56 PM
Lothar
Lothar - avatar
+ 1
The biggest number is also called maximum. You can compare the number using if-else statements/ switch statements or the Math.max()
26th Jul 2022, 3:15 PM
Lisa
Lisa - avatar
+ 1
And now put the code inside of the function definition. You could try if-else statements. For example if a >= b and a >= c we can tell that "a" is the maximum.
26th Jul 2022, 3:31 PM
Lisa
Lisa - avatar
0
Javascript
26th Jul 2022, 2:58 PM
k gready
k gready - avatar
0
Hi lisa,Even if you have letters? Can you show me how?
26th Jul 2022, 3:18 PM
k gready
k gready - avatar
0
Which letters? You asked about numbers. Please show your code attempt so we can check on it.
26th Jul 2022, 3:23 PM
Lisa
Lisa - avatar
0
If( (a>=b && (a>=c))return 'a' Like this?
26th Jul 2022, 3:33 PM
k gready
k gready - avatar
0
Yes, like this.
26th Jul 2022, 3:38 PM
Lisa
Lisa - avatar
0
Thank you!
26th Jul 2022, 3:45 PM
k gready
k gready - avatar