CategoryJavaScript

Learning to be careful!

When programming you sometimes need to watch out a bit. Suppose that (in javascript) you have the following: var a = [ 4, 5, 6 ]; Now, say you want, for whatever reason, to create a copy of that array and perform operations on the copy. For example, you have continue reading…

Some JavaScript OOP – Student search Engine.

I was experimenting with object oriented programming in JavaScript yesterday. Imagine the following scenario: you have a list of students. You want to keep their name, age, school year, average mark and part-time employment (if applicable) information. Additionally, you want to be able to search and sort them by their information. The best continue reading…