discord js message

client.on('messageReactionAdd', (reaction, user) => {
    console.log('a reaction has been added');
});// Add here the messages you want to be displayed.
const messages = ["Message1", "Message2", "Message3", "Message4"]

const randomMessage = messages[Math.floor(Math.random() * messages.length)];

// The message will log into the console!
console.log(randomMessage)client.on("message", message => {
    if (message.content.toLowerCase() === 'Hello') {
        message.channel.send("**Hey! What's Up?**")
// This Will Print "Hey! What's Up?" When Someone Says "Hello" //

Also in JavaScript: