JavaScript

Tips and tricks I learned throughout the years.

JavaScript is different. Experienced users that come from other languages have a hard time learning it, because it looks similar but operates differently. Here I will share all the insights I learned in the past few years. You will find it quite useful whether you programmed for years, or are just getting started.

JavaScript tips — Page 7

What to use for debugging, console.log() or alert()

When I started using JavaScript, the alert function quickly became my best friend. I didn't use it to display annoying messages to my users. I used to debug my code. The cool thing about it is that it…

Read

Self invoking function

This is one of those things you probably saw and didn't even know how to google. I didn't know what it's called so I had to ask on stackoverflow. So you define an anonymous function and call it right…

Read

How to use JavaScript Call and Apply methods

The most confusing functions in JavaScript are the call() and apply() methods. Interviewers have learned of this and are starting to use it against the unsuspecting candidates. Well, fear no more, by …

Read

Getting Started with JavaScript

JavaScript went from being a scripting language that was used to open a popup when you click on a button, to a language used to open a weird popup when you click on a button. The language was powerful…

Read

Photography