Hey there, @Grasshopper_Ben. I tried to return booleans in code playground but it shows the red message box saids “Illegal return statement”. What things can return keyword returns?
You can return boolean values. Are you sure you haven’t made a mistake in the code? Try posting a screenshot.
Hey there, the
return keyword can only be used inside a function. It tells the function to immediately stop running and return a value. This message will appear if you use it outside a function.
Hope this helps!