Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ getMovies
Function
getMovies
Movie-app/index.js:12–17 ·
view source on GitHub ↗
(url)
Source
from the content-addressed store, hash-verified
10
getMovies(API_URL)
11
12
async
function
getMovies(url) {
13
const
res =
await
fetch(url)
14
const
data =
await
res.json()
15
16
showMovies(data.results)
17
}
18
19
function
showMovies(movies) {
20
main.innerHTML =
''
Callers
1
index.js
File · 0.85
Calls
1
showMovies
Function · 0.85
Tested by
no test coverage detected