This document is useful to developers who know either JavaScript or Ruby and want to learn the other language. Note that the code provided for comparison may not have the exact same behaviour. Edge cases are not covered extensively.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<!--[if IE 5]><b>Internet Explorer version 5 </b><![endif]--> | |
<!--[if IE 6]><b>Internet Explorer version 6 </b><![endif]--> | |
<!--[if IE 7]><b>Internet Explorer version 7 </b><![endif]--> | |
<!--[if IE 8]><b>Internet Explorer version 8 </b><![endif]--> | |
<!--[if IE 9]><b>Internet Explorer version 9 </b><![endif]--> | |
<br/><br/> | |
<script> | |
var _navigator = {}; |