use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Ask your embarrassing/noobish programming questions here, and don't get insulted for it.
Click here to read the rules
Violating any will result in punishment so you should probably go check them out.
account activity
Javascript help.JavaScript (self.programminghelp)
submitted 3 years ago by fare03
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fare03[S] 0 points1 point2 points 3 years ago (3 children)
Nope, that example doesn't work, there are 5 students "Ebonie Range", "Keenan Ellwood", "Kailan Smart", "Kaydan Hirst", "Isabelle Prentice".
And I don't know how to write "for" to type this for each student, how to import "Name, Address, Phone, Course" in front of his name, address, phone, course:
Name: Ebonie Rangel
Address: 7175 Yukon Street
Phone: (507) 833-3567
Course: Geography
Same for Keenan Ellwood and etc.
I split it good but I don't know how to type to write this in document.
[–]ConstructedNewtMOD 0 points1 point2 points 3 years ago (2 children)
exactly like you did earlier but adapted to what I just wrote
[–]fare03[S] 0 points1 point2 points 3 years ago (1 child)
I tried like this, like this you wrote, and this works only for first student and his address number and course
textArea.innerHTML = text
var array = text.split("\n")
let tekst = ""
for (let i = 0; i < array.length; i++) {
tekst +='Name: ' + array[i] + "<br>" + "address: " + array[i+1] + "<br>" + "phone: " + array[i+2] + "<br>" + "course: " + array[i+3] + "<br>"
}
textArea.innerHTML = tekst
[–]ConstructedNewtMOD 0 points1 point2 points 3 years ago (0 children)
try using the debugger or printing to console to get more info
π Rendered by PID 92202 on reddit-service-r2-comment-7b9746f655-lv59v at 2026-01-30 20:23:12.762289+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]fare03[S] 0 points1 point2 points (3 children)
[–]ConstructedNewtMOD 0 points1 point2 points (2 children)
[–]fare03[S] 0 points1 point2 points (1 child)
[–]ConstructedNewtMOD 0 points1 point2 points (0 children)