Kamis, 01 Desember 2016

How to perform type conversion in javascript

The mechanism of converting a value or variable from one type to another type is known as type conversion. There two types of type conversion: implicit type conversion and explicit type conversion.   Implicit Type Conversion: Type conversion which is performed automatically by the JavaScript interpreter is known as implicit type conversion or coercion. Implicit type conversion may take place when the expected type is different from the actual type of the value given from the user or read from a file etc. For example, consider the following expression: “John” + 123  It can be observed that in the above

The post How to perform type conversion in javascript appeared first on Coding Security.


How to perform type conversion in javascript
read more

Tidak ada komentar:

Posting Komentar