Lifecycle Hook 'beforeCreate' Example

Using the beforeCreate lifecycle hook to create an alert, write to the console, and unsuccessfully trying to change the 'text' data property.

'initial text'