beautify 1st part of the tutorial
This commit is contained in:
parent
e3dd2cedc0
commit
6444024a9d
327 changed files with 2358 additions and 1986 deletions
|
@ -8,17 +8,17 @@
|
|||
|
||||
```js
|
||||
var foo = {
|
||||
toString: function () {
|
||||
return 'foo';
|
||||
},
|
||||
valueOf: function () {
|
||||
return 2;
|
||||
}
|
||||
toString: function() {
|
||||
return 'foo';
|
||||
},
|
||||
valueOf: function() {
|
||||
return 2;
|
||||
}
|
||||
};
|
||||
|
||||
alert(foo);
|
||||
alert(foo + 1);
|
||||
alert(foo + "3");
|
||||
alert( foo );
|
||||
alert( foo + 1 );
|
||||
alert( foo + "3" );
|
||||
```
|
||||
|
||||
Подумайте, прежде чем ответить.
|
Loading…
Add table
Add a link
Reference in a new issue