Created
June 27, 2019 00:32
-
-
Save halfnibble/3fbc84a14910d8f757f5494c64b0ee8c to your computer and use it in GitHub Desktop.
Example code so far.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My JavaScript Test</title> | |
</head> | |
<body> | |
<h1 id="page-header"> | |
Loading... | |
</h1> | |
<script type="text/javascript"> | |
var myName = "Joshua" | |
var header = document.getElementById("page-header") | |
// concatenation | |
header.innerHTML = myName + " is cool." | |
// interpolation | |
var numberString = "75"; | |
var numberNumber = 75; | |
var booleanValue = false; | |
booleanValue = 'false'; | |
let someValue = 3; | |
header.innerHTML = `Hello, ${typeof booleanValue}!` | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment