DEV Community

Wonuola
Wonuola

Posted on

JavaScript Interview Questions For Entry Level Developers

Question 1: How does a while loop start?
Answer: while (i <= 10; i++)

Question 2: How do you insert a comment that has more than one line?
Answer: /* This comment has
more than one line */

Question 3: How do you find the number with the highest value of a and c?
Answer: Math.max(a,c)

Question 4: What is the correct JavaScript syntax for opening a new window called "Tutors"
Answer: Tutors = window.open("http://tutor.com")

Question 5: How can you detect the client's browser name
Answer: navigator.appName

Let me know if this helped ;)

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay