Conditional Expression in Javascript In our last session, We had discussed about Comparison Operators, that they return a true or…