Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Tips for beginners
- //Always keep your code simple
- //Setting hello to hello
- var hello = "hello";
- //Setting world to world
- var world = "world";
- //Check if spelled right
- if(hello == "hello"){
- //Check if world spelled right
- if(world == "world"){
- console.log(hello.toUpperCase() + " " + world.toUpperCase() + "!");
- } else {
- //Handle errors
- console.log("You didn't spell world right. You might try Googling it.");
- }
- } else {
- //Handle errors
- console.log("You didn't spell hello right. Google how to spell hello.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement