Java Script code block in Gdevelop

How to implement this code and store the callback string in a scene variable

firebase.auth().sendPasswordResetEmail(email)
.then(() => {
// Password reset email sent!
// …
})
.catch((error) => {
var errorCode = error.code;
var errorMessage = error.message;
// …
});