Complete the code to send a notification message with a title.
const message = { notification: { title: '[1]' } };The title field in a notification message must be a string, like 'Hello World'.
Complete the code to send a data message with a key-value pair.
const message = { data: { [1]: '12345' } };Data messages use custom keys like orderId to send data.
Fix the error in the message object to correctly send a notification with data.
const message = { notification: { title: 'Sale' }, [1]: { discount: '20%' } };The data field is used to send custom key-value pairs alongside notification.
Fill both blanks to create a message with notification title and data key.
const message = { [1]: { title: 'Update' }, [2]: { version: '1.2.3' } };The notification field holds the visible message, and data holds extra info.
Fill all three blanks to send a notification with title, body, and data key.
const message = { [1]: { title: 'Alert', [2]: 'Check your app' }, [3]: { alertId: '789' } };The notification field contains title and body. The data field holds extra info.
