- Everything is just kind of treated as a number. And if you want to see that we can cancel or log out any number really. So this is just a representation of the number . If you want to verify the type of thing it is you can always just use this keyword type of followed by the thing you want to check. If I run this clear a consulate run it again. So you list of digital marketing companies in Bangalore didn't quite catch me hit save and try to run it again. Right so it tells us that this is a number. Right so if you're ever not sure what something is this will help clear it up. To contrast this with what a string looks like.
- This is a string and this will tell us Hey this is a string that's this can be important to know if you're trying to do something like simple arithmetic on your numbers which is definitely possible. That's easily doable. We just treat it like a number. Pretty much all the list of digital marketing companies in bangalore basic arithmetic is possible. You can do this modulus operator social media marketing agency as well which if you've never seen before. Well basically we're return to what the remainder would be if you know was divided by six. Let's see the remainder would be four. In that case if it first we divide. So we know that is perfectly divisible by it doesn't leave any remainder. So that will result in zero.
- And then if we want to see multiplication of course it's very simple. There is also a built in math object that we can use so we start with a capital. And if we want to see for example a random number math thought random Let's see what this gives us. We run it and it gives us a random number between and . So we can see it's . something something something we can call for example math dot pi if you want to get just PI for example and you can use this if you're trying to calculate list of digital marketing companies in Bangalore the radius or the circumference of a circle for example you know that you don't have to input PI manually. There are some there is a built in math object and we can call certain methods on that object.
- Well I have a string over here and over here I have a number oh this person probably wants to concatenate the string they probably want me to convert this number into a string and then add it to the original string. And that's usually not what you want to do if you're trying to add numbers together like this. That's a bit of unexpected behavior. We can use list of digital marketing companies in bangalore a built in function called parse it like so and parse and takes in a string and it parses it turns it into a number. So now if we try to run this again we'll see that it does do the addition correctly. It's a used purse. And if you need to convert something from a string into a number.