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)=>{
10 odpowiedzi
+ 4
k gready ,
we like to know what programming language you are trying to use.
+ 1
The biggest number is also called maximum.
You can compare the number using if-else statements/ switch statements or the Math.max()
+ 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.
0
Javascript
0
Hi lisa,Even if you have letters? Can you show me how?
0
Which letters? You asked about numbers.
Please show your code attempt so we can check on it.
0
If( (a>=b && (a>=c))return 'a'
Like this?
0
Yes, like this.
0
Thank you!