JSFiddle - React, Tailwind, and code Playground

by keysl183

JavaScript

function assignToVar(response){
   	var assign = response;
    alert(assign.title)
   }
   
   $(document).ready(function(){
   
      $.ajax({
            url         :"https://jsonplaceholder.typicode.com/todos/1", 
            cache       : false,
            contentType : false,
            processData : false,                     
            type        : 'get',
            success     : assignToVar
     });
   
   });