start . me .
Directory path . web , corso-html .

HTML Document File : js-tipi.html

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title> tipi in JS: testuali, numerici, funzioni, oggetti, etc</title>
    <link rel="stylesheet" href="/sitewide.css"><script src="/web/dhtml/color-theme/colors.js"></script>
</head>

<body>
    <a href="percorsi.html">percorsi tematici</a>

    <?php $current_index = 0; require("navigation.php"); ?>
    <?= navigation_previous_next($current_index, $sequence) ?>

    <p>tipi in JS: testuali, numerici, funzioni, oggetti, etc.</p>

    con "typeof" (è un operatore) si ottiene il tipo come stringa:
    stringhe quali
    <li> string (testo) </li>
    <li> number (numero) </li>
    <li> object (oggetto come vedremo contiene variabili)
        interi) </li>
    <li> function (funzione che come vedremo è una sotto parte di programma, un sotto-programma, pure riutilizzabile. )
    </li>
    <pre>
> typeof "parole e parole..."
'string'
> typeof Math.PI
'number'
> typeof console
'object'
> typeof console.log
'function'
</pre>

    come vedremo le variabili possono essere contenute in altre:
    <li>Math.PI numero PI greco contenuto in Math</li>
    <li>console.log funzione log (logging) contenuta in console</li>

    <br>

    <?= navigation_previous_next($current_index, $sequence) ?>
    <div><a href="."> go to main page. </a></div>

    <script src="/web/show-source.js"></script>

</body>

</html>