MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / createErrorContainer

Function createErrorContainer

assets/js/TrailerApp.js:50–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50function createErrorContainer() {
51 const errorCont = document.createElement('div');
52 errorCont.setAttribute('class', 'err-search');
53 const errorTemplate = `
54 <h2>Sorryyy No movie found 😢</h2>
55 `;
56 errorCont.innerHTML = errorTemplate;
57 return errorCont;
58}
59
60// async function fetchMovieJSON() {
61// try {

Callers 1

handleErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected