MCPcopy 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

10getMovies(API_URL)
11
12async function getMovies(url) {
13 const res = await fetch(url)
14 const data = await res.json()
15
16 showMovies(data.results)
17}
18
19function showMovies(movies) {
20 main.innerHTML = ''

Callers 1

index.jsFile · 0.85

Calls 1

showMoviesFunction · 0.85

Tested by

no test coverage detected