Why getting firebase is not defined error?

Here's the code for firebase.js file where I m getting this error in spite of strictly adhering to the official documentation of firebase.


import { initializeApp } from 'firebase/app';
import { getFirestore ,getDocs} from 'https://www.gstatic.com/firebasejs/9.6.3/firebase-firestore.js' 
import { collection} from 'https://www.gstatic.com/firebasejs/9.6.3/firebase-firestore.js' 
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
const firebaseConfig = {

// Initialize Firebase
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum