Programming Methodologies in JavaScript

Here I compare Object-Oriented Programming (OOP) and Functional Programming, highlighting their fundamental differences. OOP utilizes inheritance and encapsulates data, focusing on "what something is", while Functional Programming emphasizes function composition and immutability, concentrating on "what something has". Both methods have benefits and drawbacks influencing code clarity, maintainability, and memory efficiency.  MORE q

By on April 15th, 2020 in

DOM Access in JavaScript

Here I explore how to utilize the JavaScript DOM Web API to manipulate document elements. It highlights methods for accessing and modifying elements, such as retrieving elements by ID, creating new ones, and altering styles. Additionally, it describes various data types within the DOM API, enhancing understanding of its structure and capabilities.  MORE q

By on April 14th, 2020 in

Strict Mode in JavaScript

Strict mode can be turned on by the developer to run a variant of JavaScript in the browser. This variant uses different semantics to run JS code. Initiating this is as simple as writing: 'use strict'; One use case is as a temporary measure during development to uncover errors that would otherwise fail silently. In addition, if browser support can be  MORE q

By on April 14th, 2020 in

Date and Time in Javascript

The Date() object provides the number of seconds from January 1970 UTC up to the moment it is invoked. The parameters of the function allow for formatting of the output.. .toLocaleTimeString(), .toLocaleDateString() and .toLocaleString() are   MORE q

By on April 13th, 2020 in

Classes in JavaScript

Classes are blueprints to create Objects. When a class is set up with all of the properties and functions for the object, this class can then be used to create any number of identical Objects. Important notes on classes : It is common to capitalize the first letter of the class name to make clear it is a class and  MORE q

By on April 12th, 2020 in

Literals in JavaScript

Literal in programming: In computer science, a literal is a notation for representing a fixed value in source code. In JavaScript, it would be closed by { } or [ ]. Object Literal: This would be closed by { } and have a key(String or Number) and a value (any type) separated by a colon with each entry   MORE q

By on April 12th, 2020 in

Forms & Validation

It is a good idea to perform basic tests on user-inputted data before sending it to the server just to make sure it meets basic standards. This is not, in any way, a substitute for actual security tests that must be performed on the server before consuming the data. Any code running in the browser can be altered, so truly protecting the server from malicious code sent via form data can only be done away from the  MORE q

By on April 12th, 2020 in

Post Navigation