How do I create a global function?

I have a function inside create() and I want to access it from update()

Uncaught ReferenceError: createRabbit is not defined

My example code:

create() {
    rabbit = this.physics.add.group()

    function createRabbit() {
        rabbit.create(100, 100, 'rabbit')
    }
}

update() {
    if (hello == 1) {
        createRabbit()
    }
}

Try this…

Thank you! @BlunT76

create() {
    this.rabbit = this.physics.add.group()

    //this.createRabbit(); It works by removing this
}

update() {
    if (hello == 1) {
        this.createRabbit();
    }
}

createRabbit() {
    this.rabbit.create(100, 100, 'rabbit');
}