What are the top tips to write the best JavaScript code?

Lately i have been researching about the top tips to write the best JavaScript code but coulddn’t get to any conclusion. Can anyone please help me out with that.