Skip to content

Instantly share code, notes, and snippets.

View kkarrwrites's full-sized avatar
🏡
Working From Home (WFH)

K. Karr kkarrwrites

🏡
Working From Home (WFH)
View GitHub Profile

Pass by Reference vs. Pass by Value

These are my notes taken while studying Web Dev Simplified's video tutorial on passing by reference versus passing by value in JavaScript.

Pass by Value

When you set a variable to a primitive value or primitive data type, you are using pass by value, which means that the value is set to what the variable actually equals.

let a = 10; // 10

WordPress.com vs. WordPress.org

As of 2023, about 43% of websites have been built on WordPress. Web development jobs involving WordPress continue to be plentiful, even though WordPress is now 20 years old. Boot camps and other development training programs often teach the latest tech stacks (e.g., MEAN, MERN, MEVN) and fail to cover older technology (e.g., WAMP, LAMP) that utilize WordPress, which is still used by many companies around the world. Since I've seen some confusion as to what WordPress is by both web developers new to the field, as well as by tech recruiters, I'd like to give the TDLR on WordPress.com vs. WordPress.org.

WordPress.com

WordPress.com is a hosting company and platform for self-publishing websites and blogs. It does not require the user to download any software and limits what themes and plugins the user has access to, at least for the free version. Free websites built with WordPress.com have limited CSS styling captabilities. WordPress.com is responsible for managing the secur

Regular Expression Tutorial: Matching Email

A regular expression (regex) is a sequence of characters that defines a search pattern for a body of text. Regex are not programming-language specific objects. Regex consist of metacharacters and literals. Metacharacters are special characters, and literals are all other standard characters.

In JavaScript, a regex can be created using literal notation, which requires wrapping the the regex in forward slash characters (/) or by using a RegExp() constructor.

Summary

In this tutorial, I will describe the regex used for matching an email address.