Given an array of strings xs:

let xs = ["foo", "bar", "bazz"]

Make and log new arrays by the following rules. Don't change the original array.

  1. Uppercase every element
let ys = ???
  1. Titlecase every element ("foo" → "Foo", only the first letter)
let ys = ???
  1. Replace every element with it's length
let ys = ???

Download the sources and solve the task on your own machine.