In this tutorial, we will help you understand how to generate a random number using the Math.random() method by building simple shuffling playing cards app.
In this tutorial, you’ll learn how these two methods work, what is the difference between (nested) setTimeout and setInterval and we’ll give you some practical examples to understand these concepts a bit better.
Sometimes it can be hard to remember the difference between substring and substr methods, but let’s make this article a quick reminder to help you out with understanding the substring and substr difference.
Developers often need to escape special characters when they’re coding and PHP is not an exception neither. In PHP we’re familiar with an abundance of escaping functions and some of them deal with encoding HTML entities. In addition, MySQL is also particular when it comes to special characters and it has its own set of rules: they are usually covered with escaping functions such as addslashes. However, when we talk about storing JSON in MySQL the approach in escaping special characters is a bit different.
Is closure a function? What is a nested function? What is a function scope? What is lexical environment and how does it work?
Functions and procedures are probably some of the most common words in programming terminology you will hear, and occasionally people even use these terms interchangeably, which is, you guessed it, wrong. Therefore, the question we will explore in this article is, what is a function, a procedure, the difference in programming language terminology between function and procedure, and most of all what is the difference in terms of function vs. procedure functionality and their use. So, let’s dig it.