The 'it' Parameter • Exercise 2/3

Chaining with 'it'

00:00
0
15 points

Instructions

Use it to call methods on the block parameter.

Create a function upcase_all that converts each string to uppercase.

Instead of:
ruby
words.map { |w| w.upcase }

Use:
ruby
words.map { it.upcase }

Your Code

Results

Click "Run Tests" to see results