File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -112,16 +112,14 @@ for(var i = startValueInclusive; i <= endValueInclusive; ++i){
112
112
<CodeTab labels = { [" ReScript" , " JS Output" ]} >
113
113
114
114
``` res example
115
- // prints: 1 2 3
115
+ // prints: 1 2 3, one per line
116
116
for x in 1 to 3 {
117
117
Js.log(x)
118
- Js.log(" ")
119
118
}
120
119
```
121
120
``` js
122
121
for (var x = 1 ; x <= 3 ; ++ x){
123
122
console .log (x);
124
- console .log (" " );
125
123
}
126
124
```
127
125
@@ -147,16 +145,14 @@ for(var i = startValueInclusive; i >= endValueInclusive; --i){
147
145
<CodeTab labels = { [" ReScript" , " JS Output" ]} >
148
146
149
147
``` res example
150
- // prints: 3 2 1
148
+ // prints: 3 2 1, one per line
151
149
for x in 3 downto 1 {
152
150
Js.log(x)
153
- Js.log(" ")
154
151
}
155
152
```
156
153
``` js
157
154
for (var x = 3 ; x >= 1 ; -- x){
158
155
console .log (x);
159
- console .log (" " );
160
156
}
161
157
```
162
158
Original file line number Diff line number Diff line change @@ -137,23 +137,20 @@ for(var i = startValueInclusive; i <= endValueInclusive; ++i){
137
137
<CodeTab labels = { [" Reason (Old Syntax)" , " ML (Older Syntax)" , " JS Output" ]} >
138
138
139
139
``` re
140
- // prints: 1 2 3
140
+ // prints: 1 2 3, one per line
141
141
for (x in 1 to 3 ) {
142
142
Js.log(x);
143
- Js.log(" ");
144
143
};
145
144
```
146
145
``` ml
147
- (* prints: 1 2 3 *)
146
+ (* prints: 1 2 3, one per line *)
148
147
for x = 1 to 3 do
149
148
Js.log x;
150
- Js.log " "
151
149
done
152
150
```
153
151
``` js
154
152
for (var x = 1 ; x <= 3 ; ++ x){
155
153
console .log (x);
156
- console .log (" " );
157
154
}
158
155
```
159
156
@@ -184,23 +181,20 @@ for(var i = startValueInclusive; i >= endValueInclusive; --i){
184
181
<CodeTab labels = { [" Reason (Old Syntax)" , " ML (Older Syntax)" , " JS Output" ]} >
185
182
186
183
``` re
187
- // prints: 3 2 1
184
+ // prints: 3 2 1, one per line
188
185
for (x in 3 downto 1 ) {
189
186
Js.log(x);
190
- Js.log(" ");
191
187
};
192
188
```
193
189
``` ml
194
- (* prints: 3 2 1 ( )
190
+ (* prints: 3 2 1, one per line )
195
191
for x = 3 downto 1 do
196
192
Js.log x;
197
- Js.log " "
198
193
done
199
194
```
200
195
``` js
201
196
for (var x = 3 ; x >= 1 ; -- x){
202
197
console .log (x);
203
- console .log (" " );
204
198
}
205
199
```
206
200
You can’t perform that action at this time.
0 commit comments