Skip to content

Instantly share code, notes, and snippets.

@Octagon-simon
Created November 21, 2021 22:34
Show Gist options
  • Select an option

  • Save Octagon-simon/683d7db70a384c842c80cb3dc77ec867 to your computer and use it in GitHub Desktop.

Select an option

Save Octagon-simon/683d7db70a384c842c80cb3dc77ec867 to your computer and use it in GitHub Desktop.
var x = 0; var y = 0; var z = 0;
(!x && !y && !z) ? (
console.log('reassigning the variables'),
x = 10,
y = 10,
z = 10,
console.log("x is now "+x),
console.log("y is now "+y),
console.log("z is now "+z),
console.log('variables have been reassigned')
) :
console.log('variables are not empty');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment