JS Code Snippets const Keyword

Javascript const Keyword

In this code snippet, we’ll learn about the const keyword in Javascript. The const keyword does almost exactly the same thing to a variable as the let keyword. You can read more about let in this post. The difference is it also makes the variable a constant meaning it can only have its value assigned once.

JS Code Snippets let Keyword

Javascript let Keyword

In this code snippet, we’ll learn about the let keyword in Javascript. Javascript allows for some pretty weird stuff with variables like using them before being declared, declaring the same variable, multiple times and no variable scope.

JS Code Snippets For Of And For In Loops

Javascript For Of And For In Loop

In this code snippet, we’ll check out the for of loop in Javascript. You probably already know about the for and while loops. But there is another very useful type of loop present in Javascript called the “for of” loop. It can be used to iterate throught iterable object. I would say it’s the quivalent of the foreach loop in C#.

PHP Sending Emails

In this code snippet, we’ll learn how to send emails with PHPMailer in PHP. First, we’ll need to install the PHPMailer package. We’ll do that using a dependency manager for PHP called Composer. (See this tutorial if you want to know how to install Composer in the first place.)

PHP Code Snippets

PHP Code Snippets

This post contains a list PHP code snippets. In the code snippets, you can find PHP related topics with a quick explanation and a code example. I made this collection of code snippets so that if I ever forget something I can just come here to refresh my memory. Hopefully, you’ll find it useful too.

Wordpress Plugin Development

How To Make a WordPress Plugin Tutorial

Some time ago I had to make a WordPress plugin as part of my job. Here I will document what I have learned in the process. Hopefully, this can also be useful to anyone who wants to make their own plugin or do any other WordPress development. In this post, we will make a plugin while at the same time learning how to use some of the WordPress APIs.

Advertisment ad adsense adlogger