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:
- JS overview
- JS syntax
- JS example programs code
- JS comment
- JS Data types
- JS arithmetic operators
- JS comparison operators
- JS bitwise operators
- JS logical operators
- JS assignment operators
- JS special operators
- JS operators
- JS control statements
- JS switch statement
- JS for loop
- JS for in loop
- JS while loop
- JS do while loop
- JS for loop break
- JS for loop continue
- JS function
- JS number object example
- JS boolean object example
- JS string object example
- JS math object
- JS events example
- JS alert dialog box example
- JS confirmation dialog box
- JS Exceptions
- JS Browser Objects
- JS window object
- JS History object
- JS Navigator object
- JS Screen object
- JS Document object
- JS getElementById
- JS getElementsByName
- JS getElementsByTagName
- JS innerHTML property
- JS innerText property
- JS form validation
- JS email validation
- JS Class
- JS Objects
- JS Prototype
- JS Constructor
- JS static
- JS Encapsulation
- JS Inheritance
- JS Polymorphism
- JS Abstraction
- JS Cookies
- JS Cookie Attributes
- JS Cookie with multiple Name
- JS Deleting Cookies
- JS HTML DOM Events
- JS this Keyword
- JS Debugging
- JS Hoisting
- JS Strict Mode
- JS TypedArray
- JS Set
- JS Map
- JS WeakSet
- JS WeakMap
- JS Array
- JS Array concat()
- JS Array copyWithin()
- JS Array every()
- JS Array fill()
- JS Array filter()
- JS Array find()
- JS Array findIndex()
- JS Array forEach()
- JS Array includes()
- JS Array indexOf()
- JS Array join()
- JS Array lastIndexOf()
- JS Array map()
- JS Array pop()
- JS Array push()
- JS Array reverse()
- JS Array shift()
- JS Array slice()
- JS Array sort()
- JS Array splice()
- JS Array unshift()
- JS DataView
- JS DataView.getFloat32()
- JS DataView.getFloat64()
- JS DataView.getInt8()
- JS DataView.getInt16()
- JS DataView.getInt32()
- JS DataView.getUint8()
- JS DataView.getUint16()
- JS DataView.getUint32()
- JS Function apply()
- JS Function bind()
- JS Function call()
- JS Function toString()
- JS Date
- JS getDate()
- JS Date getDay()
- JS Date getFullYear()
- JS Date getHours()
- JS Date getMilliseconds()
- JS Date getMinutes()
- JS Date getMonth()
- JS Date getSeconds()
- JS Date getUTCDate()
- JS Date getUTCDay()
- JS Date getUTCFullYear()
- JS Date getUTCHours()
- JS Date getUTCMinutes()
- JS Date getUTCMonth()
- JS Date getUTCSeconds()
- JS Date setDate()
- JS Date setDay()
- JS setFullYear()
- JS setHours()
- JS setMilliseconds()
- JS setMinutes()
- JS setMonth()
- JS setSeconds()
- JS setUTCDate()
- JS setUTCFullYear()
- JS setUTCHours()
- JS setUTCMilliseconds()
- JS setUTCMinutes()
- JS setUTCMonth()
- JS setUTCSeconds()
- JS toDateString()
- JS toISOString()
- JS toJSON()
- JS toString()
- JS toTimeString()
- JS toUTCString()
- JS valueOf()
- JS handler
- JS apply()
- JS construct()
- JS defineProperty()
- JS deleteProperty()
- JS get()
- JS getOwnPropertyDescriptor()
- JS getPrototypeOf()
- JS has()
- JS isExtensible()
- JS ownKeys()
- JS preventExtensions()
- JS set()
- JS setPrototypeOf()
- JSON
- JSON.parse()
- JSON.stringify()
- JS Map clear()
- JS Map delete()
- Map entries() method
- JS Map forEach()
- JS Map get()
- JS Map has()
- JS Map keys()
- JS Map set()
- JS Map values()
- JS not empty validation
- JS alphabets validation
- JS alphabets and spaces validation
- JS alphanumeric validation
- JS string length validation
- JS phone number validation
- JS credit card validation
- JS IP address validation
- JS operator precedence
- JS Add method to object
- JS math abs()
- JS math acos()
- JS math asin()
- JS math atan()
- JS math cbrt()
- JS math ceil()
- JS math cos()
- JS math cosh()
- JS math exp()
- JS math floor()
- JS math hypot()
- JS math log()
- JS Math max()
- JS math min()
- JS math pow()
- JS math random()
- JS math round()
- JS math sign()
- JS math sin()
- JS Math sinh()
- JS math tan()
- JS math tanh()
- JS math trunc()
- JS Number isFinite()
- JS Number isInteger()
- JS Number parseFloat()
- JS parseInt Number
- JS Number toExponential()
- JS toFixed Number
- JS Number toPrecision()
- JS toString Number
- JS Number isSafeInteger()
- JS RegExp
- JS RegEx test()
- JS RegEx toString()
- JS Object.assign()
- JS Object.create()
- JS Object.defineProperty()
- JS Object.defineProperties()
- JS Object.entries()
- JS Object.freeze()
- JS Object.getOwnPropertyDescriptor()
- JS Object.getOwnPropertyDescriptors()
- JS Object.getOwnPropertyNames()
- JS Object.getOwnPropertySymbols()
- JS Object.getPrototypeOf()
- JS Object.is()
- JS Object.preventExtensions()
- JS Object.seal()
- JS Object.setPrototypeOf()
- JS Object.values()
- JS Reflect
- JS Reflect.apply()
- JS Reflect.construct()
- JS Reflect.defineProperty()
- JS Reflect.deleteProperty()
- JS Reflect.get()
- JS Reflect.getOwnPropertyDescriptor()
- JS Reflect.getPrototypeOf()
- JS Reflect.has()
- JS Reflect.isExtensible()
- JS Reflect.ownKeys()
- JS Reflect.preventExtensions()
- JS Reflect.set()
- JS Reflect.setPrototypeOf()
- JS Set add()
- JS Set clear()
- JS Set delete()
- JSSet entries()
- JS Set forEach()
- JS Set has()
- JS Set values()
- JS charAt String
- JS String charCodeAt()
- JS concat()
- JS String indexOf()
- JS String lastIndexOf()
- JS String search()
- JS String match()
- JS String replace()
- JS String substr()
- JS String substring()
- JS String slice()
- JS String toLowerCase()
- JS String toLocaleLowerCase()
- JS String toUpperCase()
- JS toLocaleUpperCase() String
- JS String toString()
- JS String valueOf()
- JS Symbol function
- JS Symbol.for()
- JS Symbol.keyFor()
- JS Symbol.toString()
- JS Symbol.hasInstance
- JS Symbol.isConcatSpreadable
- JS Symbol.match
- JS Symbol.prototype
- JS Symbol.replace
- JS Symbol.search
- JS Symbol.split
- JS Symbol.toStringTag
- JS Symbol.unscopables
- JS TypedArray copyWithin()
- JS TypedArray entries()
- JS TypedArray every()
- JS TypedArray fill()
- JS TypedArray filter()
- JS TypedArray find()
- JS TypedArray findIndex()
- JS TypedArray forEach()
- JS TypedArray includes()
- JS TypedArray indexof()
- JS TypedArray join()
- JS TypedArray Keys()
- JS TypedArray lastIndexof()
- JS TypedArray map()
- JS TypedArray reduce()
- JS TypedArray reduceRight()
- JS TypedArray reverse()
- JS TypedArray set()
- JS TypedArray Slice()
- JS TypedArray some()
- JS TypedArray sort()
- JS TypedArray subarray()
- JS TypedArray values()
- JS TypedArray toLocaleString()
- JS TypedArray toString()
- JS WeakMap delete()
- JS WeakMap get()
- JS WeakMap has()
- JS WeakMap set()
- JS WeakSet add()
- JS WeakSet delete()
- JS WeakSet has()
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