Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam8112005 authored Sep 19, 2024
1 parent bf54e73 commit cdcbc1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ async function fetchRandomNews(){
const response=await fetch(url);
const data=await response.json();
console.log(data);
console.log(data.articles);
console.log("sexyyyy");
return data.articles;
}catch(e){
console.error("Error in Fetching Random News !");
Expand Down

0 comments on commit cdcbc1e

Please sign in to comment.