Skip to main content
1 of 3
Jonah
  • 33.8k
  • 4
  • 40
  • 94

J, 14 bytes

[:,]`toupper/.

Try it online!

  • ]`toupper/. In general, u`v/. will alternately apply verb u and v to each element in a list. Here, we alternately apply the identity ] and toupper.
  • [:, The above will return a 1-column matrix, though. So we need to flatten , the result.
Jonah
  • 33.8k
  • 4
  • 40
  • 94