beautify 1st part of the tutorial

This commit is contained in:
Ilya Kantor 2015-03-10 12:36:58 +03:00
parent e3dd2cedc0
commit 6444024a9d
327 changed files with 2358 additions and 1986 deletions

View file

@ -7,25 +7,25 @@
```js
// до вызова
var menu = {
width: 200,
height: 300,
title: "My menu"
width: 200,
height: 300,
title: "My menu"
};
multiplyNumeric(menu);
// после вызова
menu = {
width: 400,
height: 600,
title: "My menu"
width: 400,
height: 600,
title: "My menu"
};
```
P.S. Для проверки на число используйте функцию:
```js
function isNumeric(n) {
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n)
}
```