• Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Steve Moore
    Steve Moore
    6,732 Points

    For the mental exercise...

    Posted November 6, 2022 4:44am by Steve Moore
    Steve Moore
    6,732 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Hanwen Zhang
    Hanwen Zhang
    20,084 Points

    Why input.value = ""; is followed after const text = input.value; in order to reset the value?

    Posted March 29, 2021 11:56pm by Hanwen Zhang
    Hanwen Zhang
    20,084 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Muaaz Matwadia
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Muaaz Matwadia
    Full Stack JavaScript Techdegree Graduate 19,327 Points

    Functions

    Posted January 16, 2021 6:37am by Muaaz Matwadia
    .a{fill-rule:evenodd;}techdegree seal-36
    Muaaz Matwadia
    Full Stack JavaScript Techdegree Graduate 19,327 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Muaaz Matwadia
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Muaaz Matwadia
    Full Stack JavaScript Techdegree Graduate 19,327 Points

    Input.value

    Posted January 16, 2021 6:27am by Muaaz Matwadia
    .a{fill-rule:evenodd;}techdegree seal-36
    Muaaz Matwadia
    Full Stack JavaScript Techdegree Graduate 19,327 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Zachary Davidson
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Zachary Davidson
    Full Stack JavaScript Techdegree Graduate 14,454 Points

    Weird indent on arrow functions with addEventListener in workspace

    Posted December 29, 2020 4:02pm by Zachary Davidson
    .a{fill-rule:evenodd;}techdegree seal-36
    Zachary Davidson
    Full Stack JavaScript Techdegree Graduate 14,454 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    2 Answers

  • Jack Dolitsky
    Jack Dolitsky
    4,187 Points

    const variables question

    Posted July 15, 2020 9:42pm by Jack Dolitsky
    Jack Dolitsky
    4,187 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    2 Answers

  • Doron Geyer
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Doron Geyer
    Full Stack JavaScript Techdegree Student 13,896 Points

    small queries with the first video

    Posted October 9, 2019 8:26am by Doron Geyer
    .a{fill-rule:evenodd;}techdegree
    Doron Geyer
    Full Stack JavaScript Techdegree Student 13,896 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    2 Answers

  • Siddharth Pandey
    Siddharth Pandey
    7,280 Points

    How is the parameter of a function an event object?

    Posted July 14, 2019 5:31pm by Siddharth Pandey
    Siddharth Pandey
    7,280 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Siddharth Pandey
    Siddharth Pandey
    7,280 Points

    Why doesn't my code work?

    Posted July 12, 2019 3:16am by Siddharth Pandey
    Siddharth Pandey
    7,280 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    3 Answers

  • Amandeep Pasricha
    Amandeep Pasricha
    14,932 Points

    Shouldn't li have been 'let' as opposed to 'const' because we altered one of its properties (textContent)?

    Posted June 16, 2019 1:02pm by Amandeep Pasricha
    Amandeep Pasricha
    14,932 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    2 Answers

  • Amandeep Pasricha
    Amandeep Pasricha
    14,932 Points

    Would the code have worked if we didn't put e as a parameter in the beginning, and proceeded to write input.target?

    Posted June 16, 2019 12:37pm by Amandeep Pasricha
    Amandeep Pasricha
    14,932 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Crystal Morrison
    Crystal Morrison
    11,076 Points

    Console error on my web site...

    Posted October 23, 2018 12:05pm by Crystal Morrison
    Crystal Morrison
    11,076 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    3 Answers

  • baderbouta
    baderbouta
    7,804 Points

    ul.appendChild(li)? Shouldn't it be this instead?

    Posted October 8, 2018 12:12pm by baderbouta
    baderbouta
    7,804 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Peter Retvari
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Peter Retvari
    Full Stack JavaScript Techdegree Student 8,392 Points

    Submit vs. Click event

    Posted August 11, 2018 8:07am by Peter Retvari
    .a{fill-rule:evenodd;}techdegree
    Peter Retvari
    Full Stack JavaScript Techdegree Student 8,392 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Tuan Phan
    Tuan Phan
    10,825 Points

    input.value = ``; //This make empty string instead of the following things in the video.

    Posted June 28, 2018 2:58pm by Tuan Phan
    Tuan Phan
    10,825 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    3 Answers

  • Greg Schudel
    Greg Schudel
    4,090 Points

    Cannot read property 'querySelector' of null -- No idea why

    Posted March 15, 2018 8:35pm by Greg Schudel
    Greg Schudel
    4,090 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    6 Answers

  • Rosario Dawson
    Rosario Dawson
    400 Points

    Uncaught ReferenceError: inputText is not defined

    Posted November 18, 2017 1:50pm by Rosario Dawson
    Rosario Dawson
    400 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    3 Answers

  • Mike John
    Mike John
    3,182 Points

    What is the (e) parameter in the EventListener.?? I couldnt get my head around it.

    Posted November 13, 2017 8:37am by Mike John
    Mike John
    3,182 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    3 Answers

  • ywang04
    ywang04
    6,762 Points

    document.querySelector('input'); VS form.querySelector('input');

    Posted September 11, 2017 4:17am by ywang04
    ywang04
    6,762 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Ryan Schmelter
    Ryan Schmelter
    9,710 Points

    Clearing the input field leaves the field completely empty instead of with the "Invite Someone" text.

    Posted August 6, 2017 6:57pm by Ryan Schmelter
    Ryan Schmelter
    9,710 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    2 Answers

  • Peter Larson
    Peter Larson
    6,412 Points

    In the event listener, what is the "e" parameter?

    Posted August 1, 2017 11:50pm by Peter Larson
    Peter Larson
    6,412 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Diego Palma
    Diego Palma
    12,653 Points

    I'm getting the following error in the console (my code is exactly the same as the one in the video)

    Posted July 24, 2017 12:44pm by Diego Palma
    Diego Palma
    12,653 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    2 Answers

  • erika harvey
    PLUS
    erika harvey
    Courses Plus Student 14,540 Points

    does not show up on for the manipulating the dom

    Posted May 30, 2017 8:12pm by erika harvey
    erika harvey
    Courses Plus Student 14,540 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    7 Answers

  • Justin Hicks
    Justin Hicks
    14,290 Points

    I have question on if there is any unforeseen issue with how I did Registering Names

    Posted May 1, 2017 2:39am by Justin Hicks
    Justin Hicks
    14,290 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Mike Gugliuzza
    Mike Gugliuzza
    8,497 Points

    Javascript data to a server.

    Posted April 21, 2017 1:40am by Mike Gugliuzza
    Mike Gugliuzza
    8,497 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Primadonna Javier
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Primadonna Javier
    iOS Development Techdegree Student 4,236 Points

    ul.createElement is not a function error?

    Posted March 31, 2017 5:46pm by Primadonna Javier
    .a{fill-rule:evenodd;}techdegree
    Primadonna Javier
    iOS Development Techdegree Student 4,236 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    2 Answers

  • abdos essamas
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    abdos essamas
    Front End Web Development Techdegree Student 477 Points

    function Text() { [native code] }, showed me that in li value??

    Posted March 27, 2017 7:33am by abdos essamas
    .a{fill-rule:evenodd;}techdegree
    abdos essamas
    Front End Web Development Techdegree Student 477 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

  • Kevin Dunn
    Kevin Dunn
    6,623 Points

    creating const inside of event handler

    Posted March 25, 2017 1:41pm by Kevin Dunn
    Kevin Dunn
    6,623 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    4 Answers

  • Jonathan Grieve
    MOD
    Jonathan Grieve
    Treehouse Moderator 91,228 Points

    Dom Scripting and Memory Usage

    Posted January 23, 2017 5:26pm by Jonathan Grieve
    Jonathan Grieve
    Treehouse Moderator 91,228 Points
    • JavaScript
    • DOM Scripting By Example
    • Adding and Removing Names
    • Registering Names

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.