Self-tutoring about JavaScript: the tutor mentions the object window.location JavaScript has the window.location object, which contains information about the current page open in the browser. For instance, window.location.origin will give the url of the current page. Source:

Self-tutoring about regular expressions with JavaScript: the tutor mentions the idea of the boundary condition. In JavaScript regex, a boundary condition can mean a whitespace or punctuation before or after a word. That’s my understanding, anyway. Source:

The tutor shows an example of AngularJS in action, with JavaScript’s Math.pow(x,y) function. JavaScript’s function Math.pow(3,4) evaluates 34, giving the answer 81. In that expression, 3 is the base, while 4 is the exponent. Below, you can input a base …

Web programming: AngularJS, part 2 Read more »

Tagged with: ,

The tutor describes the difference between substr() and substring() Let’s imagine the string variable var strng_ex=”this_example_string”; The function substr(4,5) returns 5 characters from the string, starting at the fourth position (which is _, since the first position is 0): strng_ex.substr(4,5) …

JavaScript: string functions: substr() vs substring() Read more »

Tagged with:

The tutor shares an observation about the concat() function. The concat() function is used to join one or more strings to the end of another: var strng0 = “This string, “; var strng1 = “then this one” var strng2 = …

JavaScript: literal string with the concat() function Read more »

Tagged with: ,

The tutor shows an example of a wrapper program in action. To my knowledge, a wrapper is a program that hides a function that the managing system can’t handle. The “wrapping” is code that the managing system recognizes as the …

Web design: a JavaScript wrapper for SVG in WordPress Read more »

Tagged with:

The tutor comments on JavaScript null and undefined. Null, it seems, is often mentioned in computer science. Perhaps it’s used a little loosely: it might refer to the value read when there’s nothing there, or the value of a variable …

Computer science: JavaScript: null value, undefined type and value Read more »

Tagged with: ,