JavaScript tutorial for beginners and experienced programmers with examples and output online on Basics, advantages, disadvantages, features, examples, html, dom, css, tags, events, validation, object, loop, array, document and more.
JavaScript is the most popular programming language. It is lightweight and commonly used to create interactive and dynamic web pages. It is developed by Netscape in 1995 and named as LiveScript which is later renamed to JavaScript.
Note:
1. JavaScript is as object-oriented programming language.
2. JavaScript is as interpreted programming language with optional JIT-compilation support. Before Internet Explorer 8 and earlier, Firefox prior to 3.5 etc JavaScript was a purely interpreted language i.e. scripts execute without compilation. But for later versions JavaScript code may be either interpreted or compiled using a JIT (just-in-time) compiler. Most of the latest browsers have JavaScript JIT-compilers and translator.
Advantages of JavaScript:
1. Speed: JavaScript is very fast because it is executed on the client side.
2. Simplicity: JavaScript is relatively simple and easy to learn.
3. Versatility: means having a wide variety of skills. JavaScript can be used in a wide variety of applications regardless of the file extension of web pages.
4. Server Load: As JavaScript executes on the client side it reduce the server load.
Disadvantages of JavaScript:
1. Security: As JavaScript executes on the client side it can be used to exploit the application.
2. UI inconsistency: Sometimes JavaScript is interpreted differently by different browsers resulting in the inconsistent UI.
Java Javascript tutorial:
- javascript syntax
- JavaScript examples
- javascript comment
- javascript data types and variable scope
- Javascript arithmetic operators
- javascript comparison operators
- javascript bitwise operators
- javascript logical operators
- javascript assignment operators
- javascript special operators
- javascript operators
- javascript control statements
- Javascript switch statement
- javascript for loop
- javascript for in loop
- javascript while loop
- javascript do while loop
- javascript for loop break
- javascript for loop continue
- javascript function
- Javascript number object
- Javascript boolean object
- Javascript string object
- Javascript math object
- Javascript events
- Javascript alert dialog box
- Javascript confirmation dialog box
- JavaScript advantages and disadvantages
- What are the disadvantages of JavaScript?
- Is JavaScript a case-sensitive language?
- External JavaScript file
- Create JavaScript object
- JavaScript isNaN() function
- Difference between undefined value and null value
- Access cookie using javascript
- How to create a Cookie using JavaScript?
- Read cookie using javascript
- Get cookie by name in javascript
- Delete a cookie using javascript
- Redirect a url using javascript
- Print a web page using javascript
- Exceptions in JavaScript
- JavaScript Browser Objects
- javascript window object
- javascript History object
- Javascript Navigator object
- javascript Screen object
- javascript Document object
- javascript getElementById
- javascript getElementsByName
- javascript getElementsByTagName
- JavaScript innerHTML property
- JavaScript innerText property
- JavaScript form validation
- JavaScript email validation
- JavaScript Class
- JavaScript Objects
- JavaScript Prototype
- JavaScript Constructor Method
- JavaScript static Method
- JavaScript Encapsulation
- JavaScript Inheritance
- JavaScript Polymorphism
- JavaScript Abstraction
- JavaScript Cookies
- JavaScript Cookie Attributes
- JavaScript Cookie with multiple Name
- JavaScript Deleting Cookies
- JavaScript HTML DOM Events
- JavaScript this Keyword
- JavaScript Debugging
- JavaScript Hoisting
- JavaScript Strict Mode
- JavaScript TypedArray
- JavaScript Set
- JavaScript Map
- JavaScript WeakSet
- JavaScript WeakMap
- JavaScript Array
- JavaScript Array concat() Method
- JavaScript Array copyWithin()
- JavaScript Array every()
- JavaScript Array fill()
- JavaScript Array filter()
- JavaScript Array find()
- JavaScript Array findIndex()
- JavaScript Array forEach()
- JavaScript Array includes()
- JavaScript Array indexOf()
- JavaScript Array join()
- JavaScript Array lastIndexOf()
- JavaScript Array map()
- JavaScript Array pop()
- JavaScript Array push()
- JavaScript Array reverse()
- JavaScript Array shift()
- JavaScript Array slice()
- JavaScript Array sort()
- JavaScript Array splice()
- JavaScript Array unshift()
- JavaScript DataView
- JavaScript DataView.getFloat32()
- JavaScript DataView.getFloat64()
- JavaScript DataView.getInt8()
- JavaScript DataView.getInt16()
- JavaScript DataView.getInt32()
- JavaScript DataView.getUint8()
- JavaScript DataView.getUint16()
- JavaScript DataView.getUint32()
- JavaScript Function apply()
- JavaScript Function bind()
- JavaScript Function call()
- JavaScript Function toString()
- JavaScript Date Tutorial
- JavaScript getDate()
- JavaScript Date getDay()
- JavaScript Date getFullYear()
- JavaScript Date getHours()
- JavaScript Date getMilliseconds()
- JavaScript Date getMinutes()
- JavaScript Date getMonth()
- JavaScript Date getSeconds()
- JavaScript Date getUTCDate()
- JavaScript Date getUTCDay()
- JavaScript Date getUTCFullYear()
- JavaScript Date getUTCHours()
- JavaScript Date getUTCMinutes()
- JavaScript Date getUTCMonth()
- JavaScript Date getUTCSeconds()
- JavaScript Date setDate()
- JavaScript JS Date setDay()
- JavaScript setFullYear()
- JavaScript setHours()
- JavaScript setMilliseconds()
- JavaScript setMinutes()
- JavaScript setMonth()
- JavaScript setSeconds()
- JavaScript setUTCDate()
- JavaScript setUTCFullYear()
- JavaScript setUTCHours()
- JavaScript setUTCMilliseconds()
- JavaScript setUTCMinutes()
- JavaScript setUTCMonth()
- JavaScript setUTCSeconds()
- JavaScript toDateString()
- JavaScript toISOString()
- JavaScript toJSON()
- JavaScript toString() method
- JavaScript toTimeString() method
- JavaScript toUTCString() method
- JavaScript valueOf() method
- JavaScript handler
- JavaScript apply() method
- JavaScript construct()
- JavaScript defineProperty() method
- JavaScript deleteProperty() method
- JavaScript get() method
- JavaScript getOwnPropertyDescriptor() method
- JavaScript getPrototypeOf() method
- JavaScript has() method
- JavaScript isExtensible() method
- JavaScript ownKeys() method
- JavaScript preventExtensions() method
- JavaScript set() method
- JavaScript setPrototypeOf() method
- JavaScript JSON
- JSON.parse() method
- JSON.stringify() method
- JavaScript Map clear() method
- JavaScript Map delete() method
- Map entries() method JavaScript
- JavaScript Map forEach() method
- JavaScript Map get() method
- JavaScript Map has() method
- JavaScript Map keys() method
- JavaScript Map set() method
- JavaScript Map values() method
- not empty validation JavaScript JS
- JavaScript alphabets validation
- JavaScript alphabets and spaces validation
- alphanumeric validation JavaScript JS
- JavaScript string length validation
- phone number validation JavaScript JS
- JavaScript credit card validation
- JavaScript IP address validation
- operator precedence in JavaScript
- Add method to JavaScript object
- abs math JavaScript JS
- JavaScript math acos() method
- JavaScript math asin() method
- JavaScript math atan() method
- JavaScript math cbrt() method
- JavaScript math ceil() method
- JavaScript math cos() method
- JavaScript math cosh() method
- JavaScript math exp() method
- JavaScript math floor() method
- JavaScript math hypot() method
- JavaScript math log() method
- JavaScript Math max() method
- JavaScript math min() method
- JavaScript Math pow()
- Math Random JavaScript JS
- JavaScript math round() method
- JavaScript math sign() method
- JavaScript math sin() method
- JavaScript Math sinh()
- JavaScript math tan() method
- JavaScript math tanh() method
- JavaScript math trunc() method
- JavaScript Number isFinite() method
- JavaScript Number isInteger() method
- JavaScript Number parseFloat() method
- parseInt Number JavaScript JS
- JavaScript Number toExponential() method
- toFixed Number JavaScript JS
- JavaScript Number toPrecision() method
- toString Number JavaScript JS
- JavaScript Number isSafeInteger() method
- JavaScript RegExp tutorial
- JavaScript RegEx exec()
- JavaScript RegEx test() method
- JavaScript RegEx toString()
- Object.assign() JavaScript
- Object.create() JavaScript
- Object.defineProperty() JavaScript
- Object.defineProperties() JavaScript JS
- Object.entries() JavaScript
- Object.freeze() JavaScript
- Object.getOwnPropertyDescriptor() JavaScript JS
- Object.getOwnPropertyDescriptors() JavaScript JS
- Object.getOwnPropertyNames() JavaScript
- Object.getOwnPropertySymbols() JavaScript JS
- Object.getPrototypeOf() JavaScript
- Object.is() JavaScript JS
- Object.preventExtensions() JavaScript
- Object.seal() JavaScript
- Object.setPrototypeOf() JavaScript JS
- Object.values() JavaScript
- JavaScript Reflect
- Reflect.apply() JavaScript JS
- Reflect.construct() JavaScript
- Reflect.defineProperty() JavaScript
- Reflect.deleteProperty() JavaScript
- Reflect.get() JavaScript JS
- Reflect.getOwnPropertyDescriptor() JavaScript
- Reflect.getPrototypeOf() JavaScript JS
- Reflect.has() JavaScript
- Reflect.isExtensible() JavaScript
- Reflect.ownKeys() JavaScript JS
- Reflect.preventExtensions() JavaScript
- Reflect.set() JavaScript JS
- Reflect.setPrototypeOf() JavaScript
- Set add() JavaScript JS
- Set clear() JavaScript
- Set delete() JavaScript JS
- Set entries() JavaScript
- Set forEach() JavaScript
- Set has() JavaScript
- Set values() JavaScript
- charAt String JavaScript
- JavaScript String charCodeAt() method
- concat() JavaScript JS
- JavaScript String indexOf() method
- JavaScript String lastIndexOf() method
- JavaScript String search() method
- JavaScript String match() method
- JavaScript String replace() method
- JavaScript String substr() method
- JavaScript String substring() method
- JavaScript String slice() method
- JavaScript String toLowerCase() method
- JavaScript String toLocaleLowerCase() method
- JavaScript String toUpperCase() method
- toLocaleUpperCase() String JavaScript JS
- JavaScript String toString()
- JavaScript String valueOf() method
- Symbol function JavaScript
- JavaScript Symbol.for() method
- JavaScript Symbol.keyFor() method
- JavaScript Symbol.toString() method
- Symbol.hasInstance JavaScript
- Symbol.isConcatSpreadable JavaScript
- Symbol.match JavaScript JS
- Symbol.prototype JavaScript
- Symbol.replace JavaScript
- Symbol.search JavaScript
- Symbol.split JavaScript
- Symbol.toStringTag JavaScript
- Symbol.unscopables JavaScript
- TypedArray copyWithin() JavaScript JS
- TypedArray entries() JavaScript
- TypedArray every() JavaScript JS
- TypedArray fill() JavaScript
- TypedArray filter() JavaScript JS
- TypedArray find() JavaScript
- TypedArray findIndex() JavaScript
- TypedArray forEach() JavaScript
- TypedArray includes() JavaScript
- TypedArray indexof() JavaScript
- TypedArray join() JavaScript
- TypedArray Keys() JavaScript
- TypedArray lastIndexof() JavaScript
- TypedArray map() JavaScript
- TypedArray reduce() JavaScript
- TypedArray reduceRight() JavaScript
- TypedArray reverse() JavaScript
- TypedArray set() JavaScript
- TypedArray Slice() JavaScript
- TypedArray some() JavaScript
- TypedArray sort() JavaScript
- TypedArray subarray() JavaScript
- TypedArray values() JavaScript
- TypedArray toLocaleString() JavaScript
- TypedArray toString() JavaScript
- WeakMap delete() JavaScript
- WeakMap get() JavaScript
- WeakMap has() JavaScript JS
- WeakMap set() JavaScript
- WeakSet add() JavaScript JS
- WeakSet delete() JavaScript
- WeakSet has() JavaScript
- JavaScript remove specific character from string
JavaScript interview questions:
- JavaScript Interview Questions and Answers.
- JavaScript advantages and disadvantages
- Javascript External file
- Javascript isNaN()
- Javascript Undefined and Null
- Javascript Create object
- JavaScript access cookie
- Javascript read cookie
- Javascript get cookie by name
- Javascript detete cookie
- Javascript redirect URL
- Javascript print webpage
- Javascript exceptions