...

/

Challenge: Coroutine Context

Challenge: Coroutine Context

Solve a challenge relating to coroutine context.

Problem

Write a code that involves creating two elements with names “Educative” and “Inc.” using the CoroutineName class. When we add another element with the same key, the new element replaces the previous one, and the output will be “Inc.”

Restriction

The output will be available in the terminal.

Output

Educative
Inc.
Inc.
Access this course and 1400+ top-rated courses and projects.