Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@outoftime
Created February 28, 2017 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save outoftime/946f91052a49538aa040309142e08778 to your computer and use it in GitHub Desktop.
Save outoftime/946f91052a49538aa040309142e08778 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=946f91052a49538aa040309142e08778
<!DOCTYPE html>
<html>
<head>
<title>My first If statment</title>
</head>
<body>
<h1></h1>
</body>
</html>
{"enabledLibraries":["jquery"]}
//Change the code below so that the IF statement is no longer true.
var n = 1;
if (n < 2) {
$("h1").append("The statement is true!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment