-
Notifications
You must be signed in to change notification settings - Fork 4
Compare to JS
Jayson Harshbarger edited this page Feb 9, 2016
·
8 revisions
JavaScript | F-Flat |
---|---|
3 |
3 |
3.1415 |
3.1415 |
no complex numbers | i |
'Hello world!' |
'Hello world!' |
`3 === ${1+2}` |
`3 === ${1 2 +}` |
true |
true |
[1,2,3] |
[1 2 3] |
JavaScript | F-Flat |
---|---|
[3,4] |
[ 3 4 ] |
[3,4][0] |
[ 3 4 ] 0 @ |
JavaScript | F-Flat |
---|---|
{ x: 3, y: 4 } |
{ x: 3 y: 4 } |
({ x: 3, y: 4 }).x |
{ x: 3 y: 4 } x: @ |
JavaScript | F-Flat |
---|---|
1 + 2 |
1 2 + |
() => true |
[ true ] |
(x,y) => x + y |
[ + ] |
function add(x,y) { return x + y; } |
[ + ] 'add' def |
Math.max(3, 4) |
3 4 max |
Math.min(1, Math.pow(2, 4)) |
1 2 4 ^ min |
[1,2,3].map(Math.sqrt) |
[1 2 3] [ sqrt ] map |
[{ x: 3, y: 4 }, ... ].map(p => p.x) |
[{ x: 3 y: 4 } ... ] [ x: @ ] map |
JavaScript | F-Flat |
---|---|
3 > 2 ? '😺' : '🐶' |
3 2 > '😺' '🐶' choose |
JavaScript | F-Flat |
---|---|
'abc' + '123' |
'abc' '123' + |
'abc'.length |
'abc' length |
'abc' + 123 |
'abc' 123 + |
JavaScript | F-Flat |
---|---|
var n = 42 |
N/A |
- Introduction
- Language
- Words
- Internal
- Definitions
- Examples