Consider the following example:
In the example given above,
we are creating strings
using double quotes.
The variables fullName
, book
and
someRandomSentence
store string values.
We can also use single quotes
to create strings.
In the example given above,
we are creating strings
using single quotes.
The variables name
, sport
and
someRandomWord
store string values.
You can see that using
single quotes or double quotes
for creating strings
makes no difference.
But moving forward,
to maintain consistency in the Academy,
we will be using double quotes
when creating strings.