String is the name which is inputted into the console, I just don't know how to make such a code.
I really hope you guys understand what I'm trying to do here. Basically, if someone inputs their name and its Joe, then it should say "You can drink". I just don't know how to get it to do that.
To add to @Rootkitee. New Boston was very helpful for me when I was learning, but take it with a pinch of salt. He uses some bad practices. Learn the conceps from him and do stuff with it yourself, find exercises online etc. And use google.