How to use if in buttons? For example, If this button pressed document. write("Hello")? (JS) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson