Ruby - Control Flow
How can you use a ternary operator to assign a variable "status" to "Active" if a user is logged in, otherwise "Guest"? Assume variable logged_in is true or false.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions