Exercises

JavaScript Basics Knowledge Test

Put your JavaScript fundamentals to the test with this beginner-friendly quiz. Explore essential concepts including console output, JavaScript's origins, isNaN(), strict equality operators, function declarations, ES6 variable definitions, the this keyword, comments, rounding numbers with Math methods, and adding items to arrays. Whether you are starting to learn web development or reviewing core programming skills, this quiz helps you check your understanding of the JavaScript features used in everyday coding.

Answer the questions below and check the explanation for each answer.

0/10 answered

  1. 1

    What is the correct syntax to print a message to the console in JavaScript?

  2. 2

    Which company developed JavaScript?

  3. 3

    What is the use of isNaN function in JavaScript?

  4. 4

    In JavaScript, which operator is used to compare both value and type?

  5. 5

    How do you create a function in JavaScript?

  6. 6

    Which of the following is a proper way to define a variable in ES6?

  7. 7

    What does the 'this' keyword refer to in JavaScript?

  8. 8

    Which of the following is the correct way to implement a comment in JavaScript?

  9. 9

    Which method is used to round a number to the nearest integer in JavaScript?

  10. 10

    How can you add an element to the end of an array in JavaScript?

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate