Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove "Top 85 Javascript Interview Questions" #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eschwartz
Copy link

Has several incorrect/incomplete/misleading answers

For example:

  1. Which is faster between JavaScript and an ASP script?
    JavaScript is faster. JavaScript is a client-side language,, and thus it does not need the assistance of the webserver to execute. On the other hand, ASP is a server-side language and hence is always slower than JavaScript. Javascript now is also a server-side language (nodejs).

It's wrong to suggest that server-side languages are inherently slower. Usually I would expect the opposite (especially comparing compiled vs. interpreted languages.)

  1. Enumerate the differences between Java and JavaScript?
    Java is a complete programming language. In contrast, JavaScript is a coded program that can be introduced to HTML pages. These two languages are not at all inter-dependent and are designed for different intent. Java is an object-oriented programming (OOPS) or structured programming languages like C++ or C, whereas JavaScript is a client-side scripting language.

Not sure what it means that Java is "complete" and Javascript is not. Either way, there are much more interesting differences between the languages (java is strongly typed, it is compiled, it runs on a JVM, etc.)

  1. What is the use of isNaN function?
    isNan function returns true if the argument is not a number; otherwise, it is false.

Kind of... but isNaN('3') returns false, even though 3 is not a number (it's a string).


Any of these answers given in an interview would indicate some lack of understanding of JS to me. In other words, not awesome 😉

Has several incorrect/incomplete/misleading answers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant