This shows you the differences between two versions of the page.
ro:typeof [2017/08/21 04:39] junior-root |
ro:typeof [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== TypeOf (Funcție) ===== | ||
- | > **Engleză: | ||
- | ==== Format ==== | ||
- | **typeof** ( [[expressions|expresie]] )\\ | ||
- | **typeof** ( [[variables|variabilă]] )\\ | ||
- | |||
- | Întoarce un [[integerexpressions|număr_întreg]]. | ||
- | ==== Descriere ==== | ||
- | Returnează un număr care reprezintă tipul unei valori/ | ||
- | {{page> | ||
- | ==== Exemplu ==== | ||
- | < | ||
- | print typeof(a) | ||
- | print typeof(1) | ||
- | print typeof(42.345) | ||
- | print typeof(" | ||
- | dim b(99) | ||
- | print typeof(b) | ||
- | </ | ||
- | va afișa | ||
- | < | ||
- | 0 | ||
- | 1 | ||
- | 2 | ||
- | 3 | ||
- | 4 | ||
- | </ | ||
- | ==== Vezi și ==== | ||
- | {{page> | ||
- | ==== Istoric ==== | ||
- | |1.99.99.8|Adăugată în acestă versiune| | ||