Posts

Showing posts with the label JavaScript

JavaScript Jobs: Top 100 Interview Questions

Image
JavaScript Jobs: Top 100 Interview Questions 1) Explain what is Javascript? Javascript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.It is first used by the Netscape browser, that provides access to the HTML document object model (DOM), provides access to the browser object model (BOM). Javascript syntax looks a lot like java, c or c++ syntax. Below is the list of data types supported by Javascript:- Undefined Null Boolean String Symbol Number Object 2) What close() does in Javascript? In Javascript close() method is used to close the current window. You must write window.close() to ensure that this command is associated with a window object and not some other JavaScript object. 3) What is the difference between let and var? Both var and let are used for variable/ method declaration in javascript but the main difference between let and var is that var is function scoped whereas let is block scoped. 4...

JavaScript Jobs: Interview Questions

Image
JavaScript Jobs: Interview Questions What are the key features of JavaScript? JavaScript language consists of several different features. Some of the general JavaScript features are as follows – Validating User’s Input JavaScript is very useful while using forms. It has the capability to validate user input for errors and also saves time. If the user leaves a required field empty or the information is incorrect, JavaScript checks for them before sending the data over to the server. Simple Client-side Calculations Since JavaScript is a client-side technology, it can perform basic calculations on the browser. The browser does not need to ask server time for every task. This is especially helpful when a user needs to perform these calculations repeatedly. In these cases, connecting to the server would take a lot more time than performing the actual calculations. Greater Control JavaScript provides greater control to the browser rather than being completely dependent on the web...