UNPKG

javascripting

Version:

Learn JavaScript by adventuring around in the terminal.

7 lines (6 loc) 182 B
const fruit = 'orange' if (fruit.length > 5) { console.log('The fruit name has more than five characters.') } else { console.log('The fruit name has five characters or less.') }