Javascript Strings

Lean how to create strings and check their equality.

In software development, working with strings is often required. We read, process, and write text files, perform logging on the activities of a system, or analyze user input.

Learning how to perform string operations is essential in any programming language.

Creating JavaScript strings

Strings contain a sequence of characters. You can either use single quotes (e.g. 'Javascript in Practice') or double quotes (e.g. "Javascript in Practice") to create strings.

Get hands-on with 1200+ tech skills courses.