A Pen by Kurt Starck on CodePen.
- KpsDev.org ASIPro.org Hitl.Org
- https://www.freecodecamp.org/StarDrop9
- in/kurt-starck-89390149
- @Kpstarck
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
| // pls import data form api with fetch and aync await | |
| async function getData() { | |
| try { | |
| const response = await fetch("https://jsonplaceholder.typicode.com/users"); | |
| const data = await response.json(); | |
| return data; | |
| } catch (error) { | |
| console.log(error); | |
| } | |
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| [{ | |
| "keyCode": 81, | |
| "keyTrigger": "Q", | |
| "id": "Heater-1", | |
| "url": "https://s3.amazonaws.com/freecodecamp/drums/Heater-1.mp3" | |
| }, { | |
| "keyCode": 87, | |
| "keyTrigger": "W", | |
| "id": "Heater-2", | |
| "url": "https://s3.amazonaws.com/freecodecamp/drums/Heater-2.mp3" |
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
| { | |
| "quotes": | |
| [{ | |
| "quote":"For God loved the world so much that he gave his one and only Son, so that everyone who believes in him will not perish but have eternal life. God sent his Son into the world not to judge the world, but to save the world through him.","author":"Jesus Christ, John 3:16-17"}, | |
| { | |
| "quote":"Love your enemies! Pray for those who persecute you! In that way, you will be acting as true children of your Father in heaven. For he gives his sunlight to both the evil and the good, and he sends rain on the just and the unjust alike.","author":"Jesus Christ, Matthew 5:43-47"}, | |
| { | |
| "quote":"And so I tell you, keep on asking, and you will receive what you ask for. Keep on seeking, and you will find. Keep on knocking, and the door will be opened to you. For everyone who asks, receives. Everyone who seeks, finds. And to everyone who knocks, the door will be opened.","author":"Jesus Christ, Luke 11:9-10"}, | |
| { | |
| "quote":"With man this is impossible, but with God all things are possible.", |