Movatterモバイル変換


[0]ホーム

URL:


  1. Glossary
  2. Type conversion

Type conversion

Type conversion (or typecasting) means transfer of data from one data type to another.Implicit conversion happens when the compiler (for compiled languages) or runtime (for script languages likeJavaScript) automatically converts data types. The source code can alsoexplicitly require a conversion to take place.

For example, given the expression"foo" + 1, theNumber1 is implicitly converted into aString and the expression returns"foo1". Given the instructionNumber("0x11"), the string"0x11" is explicitly converted to the number17.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp