We’re going to modify a working version of the CSS Colors API App to use Async/Await instead of $.ajax() to make the API call
The starter code for this lab is hosted on Github, see the url below:
Use the Assignment Submission Git Workflow (detailed here) to access and submit the assignment
2) We’ll be using axios to make our API request. Add the following script tag right before your closing <body>
tag but before the script tag targeting your js
file
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> <!-- Add the axios script tag here -->
<script src="js/app.js"></script>