beautify 1st part of the tutorial
This commit is contained in:
parent
e3dd2cedc0
commit
6444024a9d
327 changed files with 2358 additions and 1986 deletions
|
@ -15,7 +15,7 @@ alert( eval("2+2") ); // 4
|
|||
//+ run demo
|
||||
var expr, res;
|
||||
|
||||
while(true) {
|
||||
while (true) {
|
||||
expr = prompt("Введите выражение?", '2-');
|
||||
if (expr == null) break;
|
||||
|
||||
|
@ -26,11 +26,11 @@ while(true) {
|
|||
}
|
||||
|
||||
break;
|
||||
} catch(e) {
|
||||
alert("Ошибка: "+e.message+", повторите ввод");
|
||||
} catch (e) {
|
||||
alert( "Ошибка: " + e.message + ", повторите ввод" );
|
||||
}
|
||||
}
|
||||
|
||||
alert(res);
|
||||
alert( res );
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue