Though Java and JavaScript are similar in title, syntax, and respective common libraries, the two languages are distinctive and differ tremendously in layout.In the event the World-wide-web API returns a successful status code, the getItems function is invoked to update the HTML table. If the web API ask for fails, an error is logged on the browser