commit
e78e527866
5 changed files with 8 additions and 8 deletions
|
@ -147,9 +147,9 @@ But what's great -- eventually all browsers tend to follow the standard. There a
|
|||
The trend: browsers, though eager for new features, tend to be compatible with the standard.
|
||||
[/summary]
|
||||
|
||||
## New EcmaScript
|
||||
## New ECMAScript
|
||||
|
||||
JavaScript evolves. The upcoming EcmaScript-2016 standard adds more language-level features which make the syntax more capable and expressive.
|
||||
JavaScript evolves. The upcoming ECMAScript-2016 standard adds more language-level features which make the syntax more capable and expressive.
|
||||
|
||||
Modern browsers improve their engines to raise JavaScript execution script, fix bugs and try to follow the standards.
|
||||
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
let value = prompt('What is the "official" name of JavaScript?', '');
|
||||
|
||||
if (value == 'EcmaScript') {
|
||||
if (value == 'ECMAScript') {
|
||||
alert('Right!');
|
||||
} else {
|
||||
alert("Didn't know? EcmaScript!");
|
||||
alert("Didn't know? ECMAScript!");
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
Using the `if..else` construct, write the code which asks: 'What is the "official" name of JavaScript?'
|
||||
|
||||
If the visitor enters "EcmaScript", then output "Right!", otherwise -- output: "Didn't know? EcmaScript!"
|
||||
If the visitor enters "ECMAScript", then output "Right!", otherwise -- output: "Didn't know? ECMAScript!"
|
||||
|
||||
<img src="ifelse_task2.png">
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ For a long time JavaScript was evolving without compatibility issues. New featur
|
|||
|
||||
That had the benefit of never breaking the existing code. But the back side is that any mistake or an imprefect decision made by JavaScript creators got stuck in the language forever.
|
||||
|
||||
It had been so before EcmaScript 5 (ES5) appeared which added new features to the language and modified some of the existing ones.
|
||||
It had been so before ECMAScript 5 (ES5) appeared which added new features to the language and modified some of the existing ones.
|
||||
|
||||
To keep the old code working, most modifications of the pre-existing features are off by default. One need to enable them explicitly with a special directive `"use strict"`.
|
||||
|
||||
|
|
|
@ -482,7 +482,7 @@ alert( ms ); // 1327611110417 (число миллисекунд)
|
|||
|
||||
|
||||
[smart header="Формат дат для IE8-"]
|
||||
До появления спецификации EcmaScript 5 формат не был стандартизован, и браузеры, включая IE8-, имели свои собственные форматы дат. Частично, эти форматы пересекаются.
|
||||
До появления спецификации ECMAScript 5 формат не был стандартизован, и браузеры, включая IE8-, имели свои собственные форматы дат. Частично, эти форматы пересекаются.
|
||||
|
||||
Например, код ниже работает везде, включая старые IE:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue