Every function in JavaScript has a reference type property called prototype All Objects created by this function carry that same prototype, though, technically, it is not MORE q
By DarkMG73 on April 15th, 2020 in
This group covers all entries to the JavaScript Cheat Sheet
The API that provides access to the Document Object Model and allows us to take control of parts of the document. For more info on what comprises the DOM, check out MDN's writeup. The example below performs multiple DOM manipulations. The CSS styling shown here can be done by the name (like .width(), for example) when available or MORE q
By DarkMG73 on April 14th, 2020 inStrict 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 DarkMG73 on April 14th, 2020 inClasses 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 DarkMG73 on April 12th, 2020 inLiteral 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 DarkMG73 on April 12th, 2020 inIt 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 DarkMG73 on April 12th, 2020 in