Saturday, November 23, 2013

Ternary Operator in javascript


var eVal = (isNaN(eThis.val())) ? 0 : eThis.val();
var eVal = parseFloat($(eThis).val()) || 0;

2 comments:

Karthi Keyan said...

Its fantastic explaintion lot of information gather it...nice article....
seo company in Chennai

Alya Kannan said...

very very amazing explaintion....many things gather about yourself...yes realy i enjoy it
SEO Company in India