Welcome! Log In Create A New Profile

Advanced

Proper JS?

Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Proper JS?
May 17, 2013 08:31AM
As mentioned in another post, I have been playing around with Netbeans IDE.
I noticed the editor complaining about my use of "==" and "!=" and after some searching it seems that you should use "===" and "!==".

Here are some interesting links on this issue:
Stackoverflow - "==" vs "==="
and
Best practice - "==" vs "==="

According to this last site the triple equals is considered best practice and they recommend beginners to adhere to this practice...

Any comments on this?
avatar
Mac
Re: Proper JS?
May 17, 2013 09:21AM
Really advanced stuff..... if the feeling out there (and Netbeans) recommend then use it... I am not aware of this. Will have to look into it before I can judge.
avatar Re: Proper JS?
May 17, 2013 07:33PM
I haven't looked it up, but other JS tutorials recommend it so I think it would be a good practice to do it the triple '='s method smiling smiley
Sorry, only registered users may post in this forum.

Click here to login