Created
July 20, 2018 21:46
-
-
Save AlexRex/3550fd837172203f32b8816086b80d49 to your computer and use it in GitHub Desktop.
// source https://jsbin.com
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<canvas width="300" height="50" id="canvas"></canvas> | |
<script id="jsbin-javascript"> | |
const canvas = document.getElementById('canvas'); | |
const ctx = canvas.getContext('2d'); | |
console.log(ctx); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">const canvas = document.getElementById('canvas'); | |
const ctx = canvas.getContext('2d'); | |
console.log(ctx);</script></body> | |
</html> |
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
const canvas = document.getElementById('canvas'); | |
const ctx = canvas.getContext('2d'); | |
console.log(ctx); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment