The Object preventExtensions() static method prevents new properties from being added to an object.

    
    const account = {
        amount: 100
    }

    Object.preventExtensions(account);

    account.customer = "Julie"

    console.log(account)
    // { amount: 100 }