Random generated greeting text
# 📖tutorials
j
const welcomeMessages = ['Welcome', 'Hello and welcome!', 'Thanks for visiting!','Growithus assistant by your side how may i help ?'] const randomIndex = Math.floor(Math.random() * welcomeMessages.length) const randomWelcome = welcomeMessages[randomIndex] workflow.randomWelcome = randomWelcome console.log(workflow.randomWelcome) and dont forget to put a text node under this and put in the following varaible @workflow.randomWelcome (make sure you created this variable first before puting in the code and text)
c
Hey Theo! Do you mind giving people a bit of context here as to why they should add this? 🙂
j
1: it feels like a human talking 2: its fancy 3: impresing people with your skills :))
use it if you wnat to
c
I would add that to the description of your tutorial 🙂
And perhaps you can add a screenshot with final product, so people understand!
j
alrighty
r
Works great thank you @jolly-policeman-82775 !
f
ok