Array length: Difference between revisions
Content deleted Content added
added ReScript |
|||
Line 2,297:
| 2
|}
=={{header|ReScript}}==
<lang rescript>let fruits = ["apple", "orange"]
Js.log(Js.Array.length(fruits))</lang>
<lang html><!DOCTYPE html>
<html>
<head>
<title>ReScript: Array.length()</title>
<style rel="stylesheet" type="text/css">
body { color:#EEE; background-color:#888; }
</style>
<script>var exports = {};</script>
<script src="./arrlen.js"></script>
</head>
<body>
</body>
</html></lang>
{{out}}
<pre>// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
var fruits = [
"apple",
"orange"
];
console.log(fruits.length);
exports.fruits = fruits;
/* Not a pure module */</pre>
=={{header|REXX}}==
|