File tree Expand file tree Collapse file tree 1 file changed +27
-9
lines changed Expand file tree Collapse file tree 1 file changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -187,14 +187,32 @@ function weather() //weather fu
187
187
// }
188
188
189
189
190
- const no = [ '1' , '2' , '3' , '4' ]
191
- sum = 0
190
+ // const no = ['1','2','3','4']
191
+ // sum=0
192
+
193
+ // let result = []
194
+ // for(const john of no) {
195
+ // sum+=Number(john)
196
+ // result.push(sum)
197
+ // }
198
+
199
+ // console.log(sum)
200
+ // console.log(result)
201
+
202
+
203
+
204
+ // const howManyLetters = (phrase) => //size of string function
205
+ // {
206
+ // for( i in phrase)
207
+ // {
208
+ // console.log(Number(i) +1)
209
+ // result = Number(i) +1 //phrase.length
210
+ // }
211
+ // return {result : result}
212
+ // }
213
+
214
+ // const phrase= prompt("Write your Phrase : ")
215
+ // console.log(howManyLetters(phrase))
216
+
192
217
193
- let result = [ ]
194
- for ( const john of no ) {
195
- sum += Number ( john )
196
- result . push ( sum )
197
- }
198
218
199
- console . log ( sum )
200
- console . log ( result )
You can’t perform that action at this time.
0 commit comments