๐ŸŽฏ Exercise 2

Activity:

Initialize a JSON object variable called customer:

json

{

"first_name": "alice",

"last_name": "johnson",

"email": " alice.johnson@example.com ",

"score": "42.5"

}

Using inline transformations, add Console steps to display the following:

  1. The customer’s first name in uppercase
  2. The customer’s full name in title case
  3. The email after removing leading and trailing spaces
  4. The score converted to an integer
  5. A fallback value โ€” Try converting to lower customerโ€™s city; for fallback case, display “City Not Available“

Hints:

Expected Output:

ALICE

Alice Johnson

alice.johnson@example.com

42

City Not Available