How can I listen to an statement to be true and then run code on JavaScript?

后端 未结 0 2029
难免孤独
难免孤独 2021-01-15 12:24

let\'s say I have this JavaScript:

let x = false;
function doSmomething(){
    print("Hello");
}

How can I make the program to be a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题