| ## 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> | |
| ``` | |