In this video tutorial we will show you how to use Conditional Operator. They are also called Ternary Operators as…