🎯 Exercise 2
Objective: Practice using inline transformations to manipulate and format data directly within a step — without using a separate Formatter or Code Runner tool.
Last updated
Was this helpful?
Objective: Practice using inline transformations to manipulate and format data directly within a step — without using a separate Formatter or Code Runner tool.
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:
The customer's first name in uppercase
The customer's full name in title case
The email after removing leading and trailing spaces
The score converted to an integer
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
Last updated
Was this helpful?
Was this helpful?