When you compare between library and framework, you can easily distinguish the difference between those things. The framework has its own presets. For using a framework, you have to include all of its functionality in your code you want it or not.
On the other…
Now, what is meant by primitive type? A primitive type is those values that you can’t alter directly. If you want to change a value of the primitive type, you have to reassign a new value.
Here what you can do with primitive value and what can’t
object and function are not primitive types of values because we can alter them directly from the code. Let's say you made an array that has a list of five friend’s names. After a…
We use Math.abs when we want to get positive value from whatever value entered.
Like if we enter value |-2| it will give the output = 2
We use Math.round when we want to round a float value to its nearest integer value.
If we round 2.70 it will give the result =3 cause it’s nearest to the integer 3
If we round 2.31 it will give the result = 2 cause it’s nearest to integer 2.
we use Math.ceil(x) when we want to change value like ceiling or top point.
For example if we ceil Math.ceil(2.10) …
Programming is the magic of new era