Creation
You can define strings in JavaScript by enclosing the text in single quotes or double quotes:
// Single quotes can be used
let str = "Our lovely string";
// Double quotes as well
let otherStr = "Another nice string";
In Javascript, Strings can contain UTF-8 characters:
"中文 español English हिन्दी العربية português বাংলা русский 日本語 ਪੰਜਾਬੀ 한국어";
Strings can not be subtracted, multiplied, or divided.
Last updated
Was this helpful?