Skip to content

Instantly share code, notes, and snippets.

@suhailgupta03
Created May 12, 2023 15:10
Show Gist options
  • Save suhailgupta03/0cede32994f9587ac4d3381565280e10 to your computer and use it in GitHub Desktop.
Save suhailgupta03/0cede32994f9587ac4d3381565280e10 to your computer and use it in GitHub Desktop.
var classNumber = 1; // Initializaiton
while(classNumber <= 12) { // Declared a condition
console.log(classNumber);
classNumber++; // Updating the state
// which is moving the student from class
// number X to X+1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment