
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 6705 Articles for Javascript

1K+ Views
To get the current date in JavaScript, use the getDate() method.ExampleYou can try to run the following code get the date: Today's Date Get Date function myFunction() { var date = new Date(); var n = date.getDate(); document.getElementById("test").innerHTML = n; }

348 Views
The 8th edition, known as ECMAScript 2017, is the current JavaScript version, released in June 2017. JavaScript is a dynamic computer programming language.JavaScript It is lightweight and most commonly used as a part of web pages, whose implementations allow a client-side script to interact with the user and make dynamic pages. JavaScript is an interpreted programming language with a object-oriented capabilities.The ECMA-262 Specification defined a standard version of the core JavaScript language.JavaScript is a lightweight, interpreted programming language.Designed for creating network-centric applications.Complementary to and integrated with Java.Complementary to and integrated with HTML.Open and cross-platform.

550 Views
One of the major strengths of JavaScript is that it does not require any expensive development tools. You can start with a simple text editor such as Notepad. Since it is an interpreted language inside the context of a web browser, you don't even need to buy a compiler. To make our lives simpler, various vendors have come up with very nice JavaScript editing tools. Some of them are listed here − Code Editors and IDEs A quality code editor is the backbone of any JavaScript development process. Visual Studio Code (VS Code) is a ... Read More

4K+ Views
JavaScript is a lightweight, interpreted programming language. It is designed for creating network-centric applications. It is complementary to and integrated with Java. It is very easy to implement because it is integrated with HTML. It is open and cross-platform. Limitations We cannot treat JavaScript as a full-fledged programming language. It lacks the following important features: Client-side JavaScript does not allow the reading or writing of files. It has been kept for security reasons. JavaScript could not used for networking applications because there is no such support available. ... Read More

5K+ Views
JavaScript is a dynamic computer programming language. It is lightweight and most commonly used as a part of the web pages, whose implementation allows a client-side script to interact with a user and to make dynamic pages. It is an interpreted programming language with object-oriented capabilities. Advantages of JavaScript The advantages of using JavaScript are the following − Less server interaction − You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your server. Immediate feedback to the ... Read More

206 Views
JavaScript resources include resources for the scripting languages standard ECMAScript.This is standardized in the ECMA-262 and ECMA-402 specifications.Here is the ECMAScript standard for the current editions:ECMA-2629th Edition - This is ECMAScript 2018 Language Specification.ECMA-402 5th Edition - This is ECMAScript 2018 Internationalization API Specification.Here are the ECMAScript standards for historical editions:ECMA-262 7th Edition - ECMAScript 2016 Language Specification.ECMA-402 3rd Edition - ECMAScript 2016 Internationalization API SpecificationECMA-262 8th Edition - ECMAScript 2017 Language Specification ECMA-402 4th Edition - ECMAScript 2017 Internationalization API Specification

2K+ Views
Core JavaScript is the basis of the JavaScript language. JavaScript is a dynamic computer programming language. It is lightweight and most commonly used as apart from web pages, whose implementations allow a client-side script to interact with the user and make dynamic pages.The JavaScript language has the following components: Core JavaScript:Core JavaScript is the basic of the JavaScript language supports both the client and server side.Client-side javascript (CSJS)The client-side JavaScript has core JavaScript elements. For functioning, it also has properties and methods, which helps developers.Server-side JavaScript (SSJS) Server-side JavaScript, as the name suggests runs on server-side. The core is part of client-side ... Read More

266 Views
A global variable has global scope which means it can be defined anywhere in your JavaScript code. To minimize the usage of global variables, use consistent variables around different parts of your project.var myValue = { common: function(){ //Add code }, val1: { myVar1: "Demo String One", func1: function(){ //Add some code }, } val2: { myVar1: "Demo String Two", func1: function(){ //Add another code }, } val3: { myVar1: "Demo String Three", func1: function(){ //Add another code here } } };

1K+ Views
Avoid global variables or minimize the usage of global variables in JavaScript. This is because global variables are easily overwritten by other scripts. Global Variables are not bad and not even a security concern, but it shouldn’t overwrite values of another variable.On the usage of more global variables in our code, it may lead to a maintenance issue. Let’s say we added a variable with the same name. In that case, get ready for some serious bugs.To avoid the usage of global variables, use the local variables and wrap your code in closures. You can also avoid this by wrapping ... Read More

211 Views
Commonly, adding semicolons in JavaScript is optional. Simple statements in JavaScript are generally followed by a semicolon character, just as they are in C, C++, and Java. JavaScript, however, allows you to omit this semicolon if each of your statements is placed on a separate line.No need of a semicolon in a function declaration:function functionname(s) { }If the function is written as a statement, it should have a semicolon like any other statement in JavaScript:var a = function functionname(s) { };