C# - How to get a random number

In C# you can use the Random class to get random numbers: Random random = new Random(); var diceRoll = random.Next(1,7); In the above we »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#

Javascript - How to use a switch case

In JavaScript, a switch statement can be used to perform different actions based on different conditions. The switch statement tests the value of a variable or »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript

Javascript - How to format a date

You can get an instance of the date object with the current time and date using let date = new Date();. If you call .toString() on this »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript