Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables Working with Strings and Finding Help

Victor Gordian
Victor Gordian
4,656 Points

Why are strings important?

I am a bit confused on strings, are strings used for the developer to see or the people using the page. They were using upper case and lower case terms but they kept showing it on console.

1 Answer

Erik McClintock
Erik McClintock
45,783 Points


Strings are a very important and basic data type used for a variety of things in all programming languages, alongside other data types such as booleans, arrays, and integers. Strings are useful for the developer as well as the end user. If you want to use JavaScript to alter or add displayed text on the front end of a website to a user, you would use strings. If you want to take input from the front end of a website that the user has provided and run checks against it or interpret it in some fashion, you would use strings. There are many applications for all of the data types, and each one is as important as the others. Spend a bit more time with the language(s) and you will soon learn that very well, and will become very intimate with them all!

Happy coding!