How to work by val in variable in Javascript- I am not able to get proper result

JavaScript setInterval()

Using setInterval() to display the time every second (1000 milliseconds).

Can you show us what code you’ve tried?

JavaScript setInterval()

Using setInterval() to display the time every second (1000 milliseconds).

//I have passed lLoved in Loved(lLoved) function but it is not return value which I am changing true/false over there. So, please guide me how to do it ?

This is not a “I ask the forum how to do something and they write the code for me” site. This is a learning forum, so it is a “I tell them what I’m trying to do and show them what I’ve tried and they help guide me in the right direction” site.

Show us what you’ve tried. Or ask us a specific question about JS.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.