Skip to content

Instantly share code, notes, and snippets.

@jackrr
Created May 9, 2017 02:26
Show Gist options
  • Save jackrr/5c610e27d902e0c2a821f50d60ba022c to your computer and use it in GitHub Desktop.
Save jackrr/5c610e27d902e0c2a821f50d60ba022c to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=5c610e27d902e0c2a821f50d60ba022c
<!DOCTYPE html>
<html>
<head>
<title>For Loop part 2</title>
</head>
<body>
</body>
</html>
{"enabledLibraries":["jquery"]}
// WE DO TOGETHER
// Step 1 Create a for loop
// Step 2 Declare the intial statement
// Step 3 Declare the condition
// Step 4 Declare the increment statement
// Step 5 In the body of the for loop, write the code that will append hello to the screen
//EXTRA PRACTICE
// Write another for loop that prints every other number to the screen.
// Hint: try changing the increment statement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment