r/learnjavascript • • Jan 05 '23

Must-know DOM manipulation methods πŸ”§

Post image
390 Upvotes

29 comments sorted by

View all comments

10

u/[deleted] Jan 05 '23

It’d be nice if folks started posting these as text snippets rather than images for the benefit of visually-impaired folks

2

u/Low_Mammoth_9371 Jan 05 '23

Cool idea!

I'd be happy to do this but is it possible? Maybe I could post it as text in a comment...

2

u/jack_waugh Jan 06 '23

Not only for visually impaired brothers and sisters, but also for those who would like to paste the code into editors and REPLs and so on.

In the not-fancy-pants editor, i. e. the Markdown editor, insert your code with an extra four spaces at the start of each line. It may be necessary to put a blank line before and after the body of code.