Last active
May 18, 2017 00:41
-
-
Save charlenopires/71defcfa57df3cad361bee930a014eb9 to your computer and use it in GitHub Desktop.
DOM Practice1
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> | |
<script id="jsbin-javascript"> | |
[...document.getElementsByTagName("P")] | |
.forEach(e => console.log(e.innerText)); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">[...document.getElementsByTagName("P")] | |
.forEach(e => console.log(e.innerText)); | |
</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
[...document.getElementsByTagName("P")] | |
.forEach(e => console.log(e.innerText)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment