Question:- List some features of JavaScript.
Answer:- Some of the features of JavaScript are: - Lightweight - Interpreted programming language - Good for the applications which are network-centric - Complementary to Java - Complementary to HTML - Open source Cross-platform
Question:- Who developed JavaScript, and what was the first name of JavaScript?
Answer:- JavaScript was developed by Brendan Eich, who was a Netscape programmer. Brendan Eich developed this new scripting language in just ten days in the year September 1995. At the time of its launch, JavaScript was initially called Mocha. After that, it was called Live Script and later known as JavaScript.
Question:- List some of the advantages of JavaScript.
Answer:- Some of the advantages of JavaScript are: - Server interaction is less - Feedback to the visitors is immediate - Interactivity is high - Interfaces are richer
Question:- List some of the disadvantages of JavaScript.
Answer:- Some of the disadvantages of JavaScript are: - No support for multithreading - No support for multiprocessing - Reading and writing of files is not allowed - No support for networking applications.
Question:- List some of the disadvantages of JavaScript.
Answer:- Some of the disadvantages of JavaScript are: - No support for multithreading - No support for multiprocessing - Reading and writing of files is not allowed - No support for networking applications.
Question:- Define a named function in JavaScript.
Answer:- The function which has named at the time of definition is called a named function.
Question:- Define anonymous function
Answer:- It is a function that has no name. These functions are declared dynamically at runtime using the function operator instead of the function declaration. The function operator is more flexible than a function declaration. It can be easily used in the place of an expression.
Question:- Can an anonymous function be assigned to a variable?
Answer:- Yes, you can assign an anonymous function to a variable.
Question:- In JavaScript what is an argument object?
Answer:- The variables of JavaScript represent the arguments that are passed to a function.
Question:- Define closure.
Answer:- In JavaScript, we need closures when a variable which is defined outside the scope in reference is accessed from some inner scope.
Question:- What is the difference between JavaScript and JScript?
Answer:- Netscape provided the JavaScript language. Microsoft changed the name and called it JScript to avoid the trademark issue. In other words, you can say JScript is the same as JavaScript, but Microsoft provides it.
Question:- What are the key differences between Java and JavaScript? / How is JavaScript different from Java?
Answer:- JavaScript is a lightweight programming language (most commonly known as scripting language) developed by Netscape, Inc. It is used to make web pages interactive. It is not a part of the Java platform. Following is a list of some key differences between Java and JavaScript
Question:- Which of the following is the correct syntax of the eval() function? a.[objectName.]eval(numeric) b.[EvalName.]eval(string) c.[EvalName.]eval(numeric) d.[objectName.]eval(string)
Answer:- Answer: D is the correct option. The eval() function is used to evaluate or execute an argument. If the argument is an expression, the eval() function evaluates the expression. If the argument is one or more JavaScript statements, the eval() function executes the statements.
Question:- Is JavaScript case sensitive language?
Answer:- Yes, JavaScript is a case sensitive language.
