Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord