Created
July 10, 2017 21:31
-
-
Save becsegal/73aad73a5f55e8a9705599e7f56306b3 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=73aad73a5f55e8a9705599e7f56306b3
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' | |
| }; | |
| // Call display to show the title | |
| // Use square brackets + var syntax | |
| // Call display to show the artist | |
| // Use square brackets + var syntax |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment