Code Along: Random Color API with Async/Await

Code Along: Random Color API with Async/Await

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

1) Get the starter code

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>