Skip to main content

🚀 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
  • Zeeshan Dawood
    Zeeshan Dawood
    7,210 Points

    how do I get the console to recognize the new line character. I'm using the /n character.

    Posted January 26, 2015 12:40pm by Zeeshan Dawood
    Zeeshan Dawood
    7,210 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    2 Answers

  • David Blake
    David Blake
    710 Points

    In the strings challenge I am using \n for new line it it keps saying it is not correct.

    Posted October 7, 2014 4:08pm by David Blake
    David Blake
    710 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    1 Answer

  • Alik Amoyan
    Alik Amoyan
    2,807 Points

    Can't get a right answer on the first question! Is "This is line 1\nThis is line 2\nThis is line 3" incorrect?

    Posted October 4, 2014 10:20pm by Alik Amoyan
    Alik Amoyan
    2,807 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    1 Answer

  • ibraheemzahran
    ibraheemzahran
    2,248 Points

    Challenge Task 1 of 3 - Strings - Javascript

    Posted September 3, 2014 7:09pm by ibraheemzahran
    ibraheemzahran
    2,248 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    4 Answers

  • kalyani kocherla
    kalyani kocherla
    2,396 Points

    Which variable i have to make changes in this code?

    Posted August 28, 2014 10:44am by kalyani kocherla
    kalyani kocherla
    2,396 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    1 Answer

  • jag
    jag
    18,266 Points

    What am I missing?

    Posted August 6, 2014 9:23pm by jag
    jag
    18,266 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    2 Answers

  • ivan lau
    ivan lau
    2,357 Points

    what is answer for this question?Set the 'escapedBackslash' variable to the string of a backslash character.

    Posted July 31, 2014 11:36pm by ivan lau
    ivan lau
    2,357 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    1 Answer

  • Nathan Begnaud
    Nathan Begnaud
    8,221 Points

    Can't Figure This Out

    Posted June 25, 2014 1:16am by Nathan Begnaud
    Nathan Begnaud
    8,221 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    2 Answers

  • ed quijano
    ed quijano
    11,907 Points

    Any help. Would you tell me what's wrong with this answer?

    Posted June 6, 2014 4:53pm by ed quijano
    ed quijano
    11,907 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    2 Answers

  • Mark Lovett
    Mark Lovett
    15,853 Points

    This one appears to be broken

    Posted May 24, 2014 4:24pm by Mark Lovett
    Mark Lovett
    15,853 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    3 Answers

  • Miguel Cardenas
    Miguel Cardenas
    12,865 Points

    Struggling with JavaScript foundations's task 1

    Posted May 13, 2014 7:02pm by Miguel Cardenas
    Miguel Cardenas
    12,865 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    1 Answer

  • Yusuf Salaam
    Yusuf Salaam
    1,748 Points

    I Need Help on a challenge

    Posted May 5, 2014 12:12pm by Yusuf Salaam
    Yusuf Salaam
    1,748 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    1 Answer

  • Purvi Agrawal
    Purvi Agrawal
    7,960 Points

    Cannot figure out where I am making mistake !!

    Posted April 13, 2014 12:14am by Purvi Agrawal
    Purvi Agrawal
    7,960 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    1 Answer

  • Ann Zerega
    Ann Zerega
    349 Points

    Strings challenge test 1

    Posted March 24, 2014 9:09pm by Ann Zerega
    Ann Zerega
    349 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    2 Answers

  • Paul Kooi
    Paul Kooi
    3,766 Points

    Javascript Foundation / Strings: Challenge 1 of 3

    Posted March 13, 2014 5:17pm by Paul Kooi
    Paul Kooi
    3,766 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    2 Answers

  • Roufa Therrien
    Roufa Therrien
    10,153 Points

    Unclear what is expected

    Posted February 28, 2014 4:13am by Roufa Therrien
    Roufa Therrien
    10,153 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    2 Answers

  • adam costa
    adam costa
    456 Points

    new line not working?

    Posted February 23, 2014 5:38pm by adam costa
    adam costa
    456 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    2 Answers

  • Alan Hernandez
    Alan Hernandez
    506 Points

    Escape variables

    Posted February 16, 2014 10:06pm by Alan Hernandez
    Alan Hernandez
    506 Points
    • JavaScript
    • JavaScript Foundations
    • Strings
    • Escape Characters

    2 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