Q:

Check if the decimal digits is equal to .9 using javascript

Just want to ask if how to detect numbers in decimal places using javascript? 
var totalpages = {{$photos->totalphotoCount}} / {{$photos->photoCount}};
if(totalpages === to something like .9 in the decimals)
{
write a code here
}

A:

Try this:
if(totalpages.toString().match(/.*\.9/)) {
  ...
}

if it does not match, it would return null

