append VS appendChild Abdulqudus Abubakre on April 17, 2020 This is the first post in the this vs that series. A series aimed at comparing two often confusing terms, methods, objects, definition or anything ... Read full post Submit Preview Dismiss Collapse Expand Ronak Jethwa Ronak Jethwa Ronak Jethwa Follow To code, or not to code Email ronakjethwa@gmail.com Location boston / seattle Education Computer Science Work Front End Engineer Joined May 6, 2020 • May 24 '20 Dropdown menu Copy link Hide Nice one! Few more suggestions for the continuation of the series! 1. Call vs Apply 2. Prototype vs __proto__ 3. Map vs Set 4. .forEach vs .map on Arrays 5. for...of vs for...in Enter fullscreen mode Exit fullscreen mode Collapse Expand Abdulqudus Abubakre Abdulqudus Abubakre Abdulqudus Abubakre Follow Front end developer, JavaScript enthusiast, Community Builder Location Abuja, Nigeria Joined Jan 3, 2020 • May 24 '20 Dropdown menu Copy link Hide Sure, will do that. Thanks Collapse Expand Ronak Jethwa Ronak Jethwa Ronak Jethwa Follow To code, or not to code Email ronakjethwa@gmail.com Location boston / seattle Education Computer Science Work Front End Engineer Joined May 6, 2020 • May 24 '20 • Edited on May 24 • Edited Dropdown menu Copy link Hide happy to contribute by writing one if you need :) Collapse Expand Rashid Enahora Rashid Enahora Rashid Enahora Follow Joined May 25, 2023 • Oct 20 '24 Dropdown menu Copy link Hide Thank you sir!!! That was very clear and concise!!! Collapse Expand Tulsi Prasad Tulsi Prasad Tulsi Prasad Follow Making software and writing about it. Email tulsi.prasad50@gmail.com Location Bhubaneswar, India Education Undergrad in Information Technology Joined Oct 12, 2019 • Apr 18 '20 Dropdown menu Copy link Hide Very consice and clear explanation, thanks! Collapse Expand Abdulqudus Abubakre Abdulqudus Abubakre Abdulqudus Abubakre Follow Front end developer, JavaScript enthusiast, Community Builder Location Abuja, Nigeria Joined Jan 3, 2020 • Apr 18 '20 Dropdown menu Copy link Hide Glad I could help Collapse Expand Frupreneur Frupreneur Frupreneur Follow Joined Jan 10, 2020 • Apr 3 '22 Dropdown menu Copy link Hide "In cases where you can use .appendChild, you can use .append but not vice versa." well if you do need that return value, appendChild does the job while .append doesnt Collapse Expand Ryan Zayne Ryan Zayne Ryan Zayne Follow Joined Oct 5, 2022 • Jul 21 '24 Dropdown menu Copy link Hide Would anyone ever need that return value tho? Collapse Expand Mao Mao Mao Follow Joined Oct 6, 2023 • Jan 27 '25 • Edited on Jan 27 • Edited Dropdown menu Copy link Hide There's a lot of instances where you need the return value, if you need to reference it for a webapp / keep it somewhere / change its properties Collapse Expand Pacharapol Withayasakpunt Pacharapol Withayasakpunt Pacharapol Withayasakpunt Follow Currently interested in TypeScript, Vue, Kotlin and Python. Looking forward to learning DevOps, though. Location Thailand Education Yes Joined Oct 30, 2019 • Apr 18 '20 Dropdown menu Copy link Hide It would be nice if you also compare the speed / efficiency. Collapse Expand Aliyu Abubakar Aliyu Abubakar Aliyu Abubakar Follow Developer Advocate, Sendchamp. Location Nigeria Work Developer Advocate Joined Mar 15, 2020 • Apr 18 '20 Dropdown menu Copy link Hide This is straightforward Collapse Expand Abdulqudus Abubakre Abdulqudus Abubakre Abdulqudus Abubakre Follow Front end developer, JavaScript enthusiast, Community Builder Location Abuja, Nigeria Joined Jan 3, 2020 • Apr 18 '20 Dropdown menu Copy link Hide Thanks man Collapse Expand mmestiyak mmestiyak mmestiyak Follow Front end dev, most of the time busy playing with JavaScript, ReactJS, NextJS, ReactNative Location Dhaka, Bangladesh Work Front End Developer at JoulesLabs Joined Aug 2, 2019 • Oct 18 '20 Dropdown menu Copy link Hide Thanks man! Collapse Expand Kelsie Paige Kelsie Paige Kelsie Paige Follow I'm a frontend developer with a passion for design. Education Skillcrush & 100Devs Work Freelance Joined Mar 28, 2023 • Jul 6 '23 Dropdown menu Copy link Hide Here’s the light bulb moment I’ve been looking for. You nailed it in such a clean and concise way that I could understand as I read and didn’t have to reread x10 just to sort of get the concept. That’s gold! Collapse Expand mohammadparsa-javidi mohammadparsa-javidi mohammadparsa-javidi Follow Web Developer 🙃❤ Email parsajavidi17@gmail.com Work I work freelancer Joined Sep 13, 2021 • Jan 22 '23 Dropdown menu Copy link Hide Perfect👌 Collapse Expand Ali-alterawi Ali-alterawi Ali-alterawi Follow junior developer Joined Apr 20, 2023 • Apr 20 '23 Dropdown menu Copy link Hide thank you Collapse Expand Anthonia Okafor Anthonia Okafor Anthonia Okafor Follow Location Nigeria Work Frontend Developer Joined Apr 18, 2020 • Apr 18 '20 Dropdown menu Copy link Hide Well explained Collapse Expand Abdulqudus Abubakre Abdulqudus Abubakre Abdulqudus Abubakre Follow Front end developer, JavaScript enthusiast, Community Builder Location Abuja, Nigeria Joined Jan 3, 2020 • Apr 18 '20 Dropdown menu Copy link Hide Thanks Anthonia Collapse Expand dAMi dAMi dAMi Follow Email aarondamilola1998@gmail.com Location Lagos, Nigeria Joined Feb 2, 2020 • Apr 18 '20 Dropdown menu Copy link Hide This is helpful, thanks boss! Collapse Expand Md. Monirul Islam Md. Monirul Islam Md. Monirul Islam Follow Location Dhaka, Bangladesh Education Secondary Education Work Full Stack Developer Joined Dec 16, 2018 • May 16 '20 Dropdown menu Copy link Hide Thanks man! Collapse Expand Ben Halpern Ben Halpern Ben Halpern Follow A Canadian software developer who thinks he’s funny. Location NY Education Mount Allison University Pronouns He/him Work Co-founder of DEV Joined Dec 27, 2015 • Apr 17 '20 Dropdown menu Copy link Hide Very clear guide Collapse Expand Abdulqudus Abubakre Abdulqudus Abubakre Abdulqudus Abubakre Follow Front end developer, JavaScript enthusiast, Community Builder Location Abuja, Nigeria Joined Jan 3, 2020 • Apr 17 '20 Dropdown menu Copy link Hide Thanks a lot Ben :) Collapse Expand Abdelrahman Hassan Abdelrahman Hassan Abdelrahman Hassan Follow Front end developer Location Egypt Education Ain shams university Work Front end developer at Companies Joined Dec 13, 2019 • Jan 23 '21 Dropdown menu Copy link Hide Excellent explanation Collapse Expand Navin Navin Navin Follow Front End Web Developer Love with JavaScript Animation Enthusiast Tech Lover Location India Work Front End Web Developer at Wipro Joined Jan 3, 2019 • Oct 9 '20 Dropdown menu Copy link Hide Very well explained !! Collapse Expand MLM MLM MLM Follow Software Developer in training🤓 Education SUNY Plattsburgh Work Amazon🥹 Joined May 15, 2022 • May 25 '22 Dropdown menu Copy link Hide I UNDERSTAND, FINALLY! New to JavaScript and DOM Manipulation, this was perfect, clear, concise! Thank you! Collapse Expand jamaicayancy jamaicayancy jamaicayancy Follow Joined Jan 21, 2023 • Jan 21 '23 Dropdown menu Copy link Hide This was perfect. Thanks! Code of Conduct • Report abuse
Nice one! Few more suggestions for the continuation of the series!
Sure, will do that. Thanks
happy to contribute by writing one if you need :)
Thank you sir!!! That was very clear and concise!!!
Very consice and clear explanation, thanks!
Glad I could help
"In cases where you can use .appendChild, you can use .append but not vice versa."
well if you do need that return value, appendChild does the job while .append doesnt
Would anyone ever need that return value tho?
There's a lot of instances where you need the return value, if you need to reference it for a webapp / keep it somewhere / change its properties
It would be nice if you also compare the speed / efficiency.
This is straightforward
Thanks man
Thanks man!
Here’s the light bulb moment I’ve been looking for. You nailed it in such a clean and concise way that I could understand as I read and didn’t have to reread x10 just to sort of get the concept. That’s gold!
Perfect👌
thank you
Well explained
Thanks Anthonia
This is helpful, thanks boss!
Thanks man!
Very clear guide
Thanks a lot Ben :)
Excellent explanation
Very well explained !!
I UNDERSTAND, FINALLY! New to JavaScript and DOM Manipulation, this was perfect, clear, concise! Thank you!
This was perfect. Thanks!