Published on January 26, 2024By DeveloperBreeze
const apiUrl = 'https://api.chucknorris.io/jokes/random';
fetch(apiUrl)
.then(response => response.json())
.then(data => console.log('Chuck Norris Joke:', data.value))
.catch(error => console.error('Error:', error));
Comments
Please log in to leave a comment.