COVID Videocalls Sentences Generator

Review: it was easy! :slight_smile: But great for practicing.
Estimated time: 3 minutes

Code: I’m not going to create a GitHub repo for this - here’s the code - please give feedback :slight_smile:

// store possible words to be picked by the randome picker
let cans = ['can', "can't"]
let verbs = ['see', 'read', 'listen to', 'feel', 'touch', 'taste' ]
let objects = ['screen', 'video', 'document', 'audio', 'image', 'presentation']

let createMessage = (cans, verbs, objects) => {

    let can = cans[Math.floor(Math.random() * cans.length)]; 
    let verb = verbs[Math.floor(Math.random() * verbs.length)]; 
    let object = objects[Math.floor(Math.random() * objects.length)];  

    let message = "I " + [can, verb, "your", object].join(" ");

    return message

message = createMessage (cans, verbs, objects)
1 Like

I love your COVID Videocalls Sentence Generator! Such a cleaver idea.

My code looks very similar to yours. It is very simple and easy to understand.

Great job!