I am starting a new mini series on JavaScript. I’m starting it from zero. Anyone can start learning from here. My goal is helping others while learning! I know about JavaScript and I’m working on a MERN tech stack. But I think it is not a bad idea to revise the JavaScript from scratch and helping others in this time. If you have any questions, shoot on the comment session or you can directly ask me in my social media. Social media links are in the last part of today’s lesson! Let’s learn JavaScript together.

JavaScript Series — JavaScript Types Cont. — Part 3

A full series to learn the JavaScript from zero

Muhammad Ali
3 min readJan 17, 2020

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?

Originally it published on nerdjfpb blog. Check the git for codes.

you can connect with me in twitter, linkedin or instagram

--

--

Muhammad Ali
Muhammad Ali

Written by Muhammad Ali

An otaku who loves computer. Love to write and help others through my work. Have a look on my Instagram https://www.instagram.com/nerd_jfpb/

No responses yet