What's new

Help Dealing with Javascript

msstar

Forum Veteran
Joined
Mar 10, 2016
Posts
2,867
Reaction
1,426
Points
929
good day mga ka phc!, pasensya na sa abala; anyone who's in javascript?
ganito kasi lumalabas na output (right part) here's my code (left)
I just need to output consecutive numbers with hyphen, depending in the input prompt

ex:
input is 3

output must be:
1-2-3

i've been dealing this for 24 hours already, any help will be really and so much appreciated, let me also know kung ano mali ko sa codes; array is one of my weakness 1f641.png
 

Attachments

siguro ts dahil sa while() mo, while(true) hindi talaga matatapos yan kaya out of memory ang error code
 
Back
Top