String(0) === '0'
String(0) will convert the number (0) into a string ('0').
String(0)
0
'0'
A shorter, but less clear, form:
'' + 0 === '0'