toggleProperty (keyName) Booleanpublic
Set the value of a boolean property to the opposite of its current value.
starship.toggleProperty('warpDriveEngaged');
Parameters:
-
keyName
String - The name of the property to toggle
Returns:
-
Boolean - The new property value
Please login to continue.