I suggest to read the theories like this one before the Build a Greeting Bot workshop if you are stuck.
The error messages in the console can be also very helpful to find out what the proplem really is.
Please evade guessing, because it have the risk that you finish a task by writing a functioning code, but what you really need is to understand the codes logic. If you move on without the proper knowledge, you will be easily stuck lessons later. So, you did the right thing with asking for help, even if you solved the problem by yourself.