Today we’re going to learn about a type of JavaScript, which you are going to use widely! This is call “string”

String is simple text type. We need a ” for working with the string

We can use single ‘ too.

We can add strings using + between two strings

When we add number + string. Java script made it to string

But when we delete string from a number. It assume that string is a number.

When we try to delete string from string it give us NaN

We normally don’t do this, When we do any arithmetic operation, we don’t contain any string in there. So that we’re not facing any issue.

Do you learned something about string today?

See the codes – https://github.com/nerdjfpb/javaScript-Series

Find me on social media – twitter, linkedin.

Leave a Reply

Your email address will not be published. Required fields are marked *