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.
Question:- What is BOM?
Answer:- BOM stands for Browser Object Model. It provides interaction with the browser. The default object of a browser is a window. So, you can call all the functions of the window by specifying the window or directly. The window object provides various properties like document, history, screen, navigator, location, innerHeight, innerWidth,
Question:- What is DOM? What is the use of document object?
Answer:- DOM stands for Document Object Model. A document object represents the HTML document. It can be used to access and change the content of HTML.
