Created
July 10, 2017 21:35
-
-
Save becsegal/e1b9946c2457beffe840f1d3a80e204b to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=e1b9946c2457beffe840f1d3a80e204b
This file contains hidden or 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>Page Title</title> | |
| </head> | |
| <body> | |
| <p id='artist'></p> | |
| <p id='title'></p> | |
| <script | |
| src="https://code.jquery.com/jquery-3.2.1.min.js" | |
| integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" | |
| crossorigin="anonymous"></script> | |
| </body> | |
| </html> |
This file contains hidden or 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
| function display(key, value) { | |
| $('#' + key).html(key + ": " + value); | |
| } | |
| var song = { | |
| title: 'Despacito', | |
| artist: 'Luis Fonsi & Daddy Yankee Featuring Justin Bieber' | |
| }; | |
| // Enumerate over the song object to display the data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment