What message should be added to Logger component so that logger prints "The city is Pune" (Double quote should not be part of logged message)?

Refer to exhibits.

What message should be added to Logger component so that logger prints "The city is Pune" (Double quote should not be part of logged message)?
A . #["The city is" ++ payload.City]
B. The city is + #[payload.City]
C. The city is #[payload.City]
D. #[The city is ${payload.City}

Answer: C

Explanation:

Correct answer is The city is #[payload.City]

Answer can get confused with the option #["The city is" ++ payload.City] But note that this option will not print the space between is and city name. This will print The city isPune

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments