🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • duenpun
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    duenpun
    Full Stack JavaScript Techdegree Student 1,034 Points

    Can I change var('s) value syntax instead of updating it?

    Posted April 13, 2019 1:39pm by duenpun
    .a{fill-rule:evenodd;}techdegree
    duenpun
    Full Stack JavaScript Techdegree Student 1,034 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    2 Answers

  • Nick Evershed
    Nick Evershed
    6,429 Points

    Box concept is slightly flawed

    Posted October 9, 2018 6:11pm by Nick Evershed
    Nick Evershed
    6,429 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    5 Answers

  • Frans de Haan
    Frans de Haan
    6,315 Points

    Using let instead of var

    Posted July 28, 2018 3:46pm by Frans de Haan
    Frans de Haan
    6,315 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    4 Answers

  • Lane Fragomeli
    Lane Fragomeli
    5,259 Points

    When I make an alert in javascript, the pop up in Workspaces doesn't look like the one in the video. Is this normal?

    Posted January 27, 2018 3:51am by Lane Fragomeli
    Lane Fragomeli
    5,259 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    3 Answers

  • fd dd
    fd dd
    481 Points

    Sir, Did you say a wrong? You said value of 1st variable "Hello" will be gone but it exist.

    Posted December 20, 2017 5:42am by fd dd
    fd dd
    481 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    3 Answers

  • Kelvin Ribeiro
    Kelvin Ribeiro
    2,814 Points

    What's the point to create a var for a string, if you have to change that var to display a different string?

    Posted May 11, 2017 4:26pm by Kelvin Ribeiro
    Kelvin Ribeiro
    2,814 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    6 Answers

  • Unsubscribed User
    Unsubscribed User
    4,479 Points

    'if' statement only works when 'prompt' is declared as a variable?

    Posted May 7, 2017 11:32pm by Unsubscribed User
    Unsubscribed User
    4,479 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    3 Answers

  • Sufiyaan Haroon
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sufiyaan Haroon
    Full Stack JavaScript Techdegree Student 9,558 Points

    What is the difference between: alert("My message"); and: message = "My message":

    Posted March 23, 2017 2:22am by Sufiyaan Haroon
    .a{fill-rule:evenodd;}techdegree
    Sufiyaan Haroon
    Full Stack JavaScript Techdegree Student 9,558 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    2 Answers

  • Lowell Wetzel
    Lowell Wetzel
    2,739 Points

    The video played, now the system will not continue. How do I refresh the screen to continue?

    Posted October 21, 2016 7:58pm by Lowell Wetzel
    Lowell Wetzel
    2,739 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    2 Answers

  • Solomon Jordan
    PLUS
    Solomon Jordan
    Courses Plus Student 699 Points

    For some reason the code in my workspace is'nt working. When I save my file and try to preview the code I get no alert

    Posted September 18, 2016 6:44pm by Solomon Jordan
    Solomon Jordan
    Courses Plus Student 699 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    5 Answers

  • Jasveer Singh Aulakh
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Jasveer Singh Aulakh
    Full Stack JavaScript Techdegree Student 1,712 Points

    I changed the JavaScript code on workspace but it only shows the previous output, how do I solve it?

    Posted September 13, 2016 7:36pm by Jasveer Singh Aulakh
    .a{fill-rule:evenodd;}techdegree
    Jasveer Singh Aulakh
    Full Stack JavaScript Techdegree Student 1,712 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    6 Answers

  • Linlin Huang
    Linlin Huang
    2,413 Points

    Are semi-colons optional?

    Posted August 11, 2016 6:48pm by Linlin Huang
    Linlin Huang
    2,413 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    1 Answer

  • Kyle Vassella
    Kyle Vassella
    9,033 Points

    To space or not to space?

    Posted May 16, 2016 3:04am by Kyle Vassella
    Kyle Vassella
    9,033 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    5 Answers

  • Branavan Arumughan Jeyendran
    Branavan Arumughan Jeyendran
    2,734 Points

    I changed the JavaScript code on workspace but it only shows the previous output, how do I solve it?

    Posted April 5, 2016 11:34am by Branavan Arumughan Jeyendran
    Branavan Arumughan Jeyendran
    2,734 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    5 Answers

  • Chien-Ta Chen
    Chien-Ta Chen
    3,411 Points

    How can I open the javascript console in safari 9 ?? cmd + opt + c doesn't work. Thanks.

    Posted December 29, 2015 4:00pm by Chien-Ta Chen
    Chien-Ta Chen
    3,411 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    3 Answers

  • Devon Deason
    Devon Deason
    7,061 Points

    Why don't i get two alert boxes?

    Posted November 11, 2015 2:19am by Devon Deason
    Devon Deason
    7,061 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    5 Answers

  • Scott Jaworski
    Scott Jaworski
    3,019 Points

    Preview page doesn't update based on scripts.js changes.

    Posted November 10, 2015 4:12pm by Scott Jaworski
    Scott Jaworski
    3,019 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    3 Answers

  • Dimitar Tsvetkov
    Dimitar Tsvetkov
    6,806 Points

    My workspace doesn't load the preview page.

    Posted October 1, 2015 3:51pm by Dimitar Tsvetkov
    Dimitar Tsvetkov
    6,806 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    7 Answers

  • Andrew Meininger
    Andrew Meininger
    7,615 Points

    [RESOLVED] What happened to me is the opposite of what was shown.

    Posted July 12, 2015 4:48pm by Andrew Meininger
    Andrew Meininger
    7,615 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Storing and Tracking Information with Variables
    • Introducing Variables

    0 Answers

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
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.