Daily JavaScript Quiz - 2024-04-15

  • Home /
  • Daily JavaScript Quiz - 2024-04-15

Daily Quiz - 2024-04-15

console.log(('b' + 'a' + + 'a' + 'a').toLowerCase());

bananaa

baaa

banana

ananas

The answer is Option 3

The plus operator is defined for numbers and strings and as soon as a string is present on either the left or right side, a string concatenation is perfomed.

Javascript Quizzes