IO OPERATIONS:
==============
prompt() ==> Input Technique
alert(), confirm(), write(), innerText, innerHTML and outerHTML ==> Output Techniques
can prompt() return anything?
=============================
prompt() can return three values:
1) null ==> when we cancel the prompt()
2) "" (empty string) ==> when we can click on "yes" without enter any value
3) value ==> after the value entered
Is prompt() return anything?
============================================
=======================================================
strict mode of JavaScript:
==========================
==> to avoid the individual coding styles using javascript, we need to enable "strict" mode.
Syntax:
"use strict";
==> allows to reduce the code in-consistency.
and all the developers should follow the standards of the JavaScript.
Document
=================================================
How to write Javascript for Legacy Browsers?
============================================
Legacy Browsers ==> Old versioned browsers.
Operator:
Arithmetic Operator ==> ** ==> Exponent Operator or Power operator
ex: 2 ** 3 ==> 8 (new version)
old version ==> Math.pow(2,3)
==> To instruct about the new javascript to the legacy browsers: we should write the javascript within HTML comments.
Document