Lodash.js – VERSION variable

A simple Lodash.js example of the VERSION variable, which tells which version of the library we are using.
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="Tizen example"/>
    <title>Tizen lodash.js example</title>
    <script src="js/lodash.min.js"></script>
</head>
<body>
<div id="first">
</div>

<script>

    var firstDiv = document.getElementById('first');

    var result = _.VERSION

        firstDiv.innerHTML = "We will use the VERSION variable, to determine the used lodash.js version number... and we get:<br><br>";
        firstDiv.innerHTML += result;

</script>
</body>

</html>

Responses

0 Replies