0% found this document useful (0 votes)
10 views

Strings in Javascript

The document discusses different types of strings in JavaScript including single quotes, double quotes, backticks, template literals, string concatenation, type casting, and some string methods.

Uploaded by

eliancra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Strings in Javascript

The document discusses different types of strings in JavaScript including single quotes, double quotes, backticks, template literals, string concatenation, type casting, and some string methods.

Uploaded by

eliancra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

100 days of JavaScript

Day 8
Strings in JavaScript:
Strings are the sequence of character
enclosed within the single quotes (‘ ) ,
double quotes (”) or backticks (`).

Amish Khan
web developer

1/5
template literal:
string using single quotes and double
quotes are same
But using backticks produces special
types of string called template literal
Template literals allows:
1. Embed JavaScript inside string
2. We can create multi line string

Amish Khan
web developer

2/5
String concatenation:
We can concatenate two or more string
using ‘+’ symbol
Type casting:
We can concatenate a number and a
string using “+”
Here Number will be typecast into string
we can also use toString() to change
Number into String
Number() can be used to change string
to Number

Amish Khan
web developer

3/5
Some String Method Example

Amish Khan
web developer

4/5
Amish Khan
web developer

5/5

You might also like