I am making a mistake or something strange is going on but I am not seeing it.
localStorage value = 9
if (localStorage.getItem('TotalProducts') >= '10') {
alert('total products'+localStorage.getItem('TotalProducts'));
}
Why am I receiving the alert?
Alert content is total products9
Thanks everyone for helping.
For others read the comments below there is some really useful information in there.