There is a LIE inside Believe.

JavaScript Programming is the glue that holds together the HTML 5 and the CSS 3. These two technologies have been designed with "hooks" for the JavaScript Framework to connect to and exchange data. JavaScript is a Simple, Easy, straight-forward Language. Although it's original purpose was much simpler than it has grown to be; it is HIGHLY supported with transpilers, frameworks, library plugins, and a HUGE amount of API's. These extra Languages and Frameworks get Transpiled (TypeScript) into good old fashioned JavaScript (vs. ES5).
Post Reply
User avatar
james
Posts: 51
Joined: Mon Apr 16, 2018 1:03 pm

There is a LIE inside Believe.

Post by james » Sat Sep 29, 2018 1:55 pm

There is a LIE inside Believe. Programming is all about picking out patterns.

Each letter in a word is numbered from the beginning letter. For a WORD; the numbering goes: 0, 1, 2, 3. The string of letters forms a pattern of numbers. ( we start counting at ZERO )

Let's put the word "BELIEVE" inside a variable called "stringOfLetters" in JavaScript:

VAR stringOfLetters = "BELIEVE";

Now, let's pull out the letters starting at the second position to the fifth position and put them in the variable "extractedPattern"::

VAR extractedPattern = stringOfLetters.slice (2, 5);

We use the method SLICE to (literally) slice-out some letters.

<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>

<script>
var stringOfLetters = "BELIEVE";
var extractedPattern = stringOfLetters.slice(2,5);

document.getElementById("demo").innerHTML = extractedPattern;
</script>
</body>
</html>

------------------------------------------------

This prints out the LIE in BELIEVE.
believe.png
believe.png (114.52 KiB) Viewed 63 times
:o



Post Reply