You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
438 B
Markdown
15 lines
438 B
Markdown
10 years ago
|
# JavaScript Runtime
|
||
|
|
||
|
```javascript
|
||
10 years ago
|
var phantom = this.phantom || {exit: function () {}};
|
||
|
console.log('bind:', typeof Function.prototype.bind);
|
||
|
console.log('9 === parseInt("09"):', 9 === parseInt('09'));
|
||
10 years ago
|
|
||
10 years ago
|
console.log('map:', typeof Array.prototype.map);
|
||
|
console.log('reduce:', typeof Array.prototype.reduce);
|
||
|
console.log('filter:', typeof Array.prototype.filter);
|
||
|
console.log('Object.create:', typeof Object.create);
|
||
10 years ago
|
|
||
10 years ago
|
phantom.exit();
|
||
10 years ago
|
```
|