I am using IIFE to find out the output.(function(){if("indexedDB" in window) {console.log("Yes indexedDB is working");} else {console.log("No indexedDB is not working.");}})();