Hello World Master

Tutorials, articles and quizzes on Software Development

How well do you know the basics of Javascript

Find out if you know Javascript!
  • How do you write "Hello world" to the console in Javascript?





  • WhIch of the following is a valid if statement in Javascript?




  • Which of the descriptions of the following while loop are true?


    while(true){
     console.log("Hello world");
    }
    



  • Which of the following is a valid variable declaration in Javascript?





  • Which of the following for loops will print out the following;

    1
    2
    3
    




  • Which index do arrays start at?



  • Given the following object


    var dog = {
     name: "Fido"
    }
    

    How do we change the name of our dog from Fido to Cookie?