Global Business Hours LIVE
🇺🇸USA:EDT
🇬🇧UK:BST
🇨🇦Canada:EDT
🇦🇺Australia:AEDT
BizAIProBizAIPro
LEARN BY DOING

Choose the larger input

Read the specification, make an attempt and learn from the feedback. Assessment cases remain on the server.

Medium · SERVER-CHECKED PRACTICE

Choose the larger input

Return the larger of numeric parameters a and b. Use a conditional expression: condition ? valueIfTrue : valueIfFalse. Equal inputs must return that same value.

function solution(a, b) { /* your return expression */ }
Learn for free. Practice for real. Build your future.Search lessons