Merge pull request #256 from vsn4ik/en

Port #255 for en version
This commit is contained in:
Ilya Kantor 2016-02-14 09:50:03 +03:00
commit e78e527866
5 changed files with 8 additions and 8 deletions

View file

@ -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. The trend: browsers, though eager for new features, tend to be compatible with the standard.
[/summary] [/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. Modern browsers improve their engines to raise JavaScript execution script, fix bugs and try to follow the standards.

View file

@ -7,10 +7,10 @@
let value = prompt('What is the "official" name of JavaScript?', ''); let value = prompt('What is the "official" name of JavaScript?', '');
if (value == 'EcmaScript') { if (value == 'ECMAScript') {
alert('Right!'); alert('Right!');
} else { } else {
alert("Didn't know? EcmaScript!"); alert("Didn't know? ECMAScript!");
} }
</script> </script>

View file

@ -4,8 +4,8 @@
Using the `if..else` construct, write the code which asks: 'What is the "official" name of JavaScript?' 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"> <img src="ifelse_task2.png">
[demo src="ifelse_task2"] [demo src="ifelse_task2"]

View file

@ -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. 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"`. 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"`.

View file

@ -482,7 +482,7 @@ alert( ms ); // 1327611110417 (число миллисекунд)
[smart header="Формат дат для IE8-"] [smart header="Формат дат для IE8-"]
До появления спецификации EcmaScript 5 формат не был стандартизован, и браузеры, включая IE8-, имели свои собственные форматы дат. Частично, эти форматы пересекаются. До появления спецификации ECMAScript 5 формат не был стандартизован, и браузеры, включая IE8-, имели свои собственные форматы дат. Частично, эти форматы пересекаются.
Например, код ниже работает везде, включая старые IE: Например, код ниже работает везде, включая старые IE: