File size: 525 Bytes
a1a7070 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Learned web reasoning
- Read request with character n-grams and web-development fragments.
- Top intents: fetch_api=1.00, full_page=0.00, counter=0.00, tabs=0.00
- Selected intent: fetch_api
## Answer
```html
<button id="load">Load user</button><pre id="out"></pre>
<script>
document.querySelector('#load').onclick=async()=>{
const res=await fetch('https://jsonplaceholder.typicode.com/users/1');
const data=await res.json();
document.querySelector('#out').textContent=JSON.stringify(data,null,2);
};
</script>
```
|