Skip to content

Commit

Permalink
new commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aliallam742 committed Jan 11, 2024
1 parent 00c52d0 commit fa44a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ for(var i = 0 ;i < newsLinks.length ; i++){
async function contries(contry="eg"){
var apiResponce = await fetch(`https://newsapi.org/v2/top-headlines?country=${contry}&category=sports&apiKey=71e27b1cbe684bfb80a631ddaea37ef9`)
var finalResolt = await apiResponce.json();
allPosts = finalResolt.articles
allPosts =Array.from( finalResolt.articles)
await displayData()
}
function displayData(){
Expand Down

0 comments on commit fa44a10

Please sign in to comment.