DEV Community

loading...

Discussion on: Daily Challenge #56 - Coffee Shop

Collapse
mogery profile image
Gergő Móricz

Here is it smaller :)

(a,b={2.2:'Americano',2.3:'Latte',2.4:'Flat white',3.5:'Filter'}[a])=>b?`Here is your ${b}, have a nice day!`:`Sorry, exact change only, try again tomorrow!`
Forem Open with the Forem app