alert()
Last updated 8/07/2025
Example
The following code provides an alert with a message to a user to let a user know the customer record failed to be created, the user must acknowledge this message. The optional
callback
parameter is used to log the error to Five's Inspector.
Alert to display if a customer record was not created, with an optional callback parameter
five.alert('Failed to create customer record', () => {
five.log('Error creating customer record : ' + err.message);
})