Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var booltestvar = true;
- function testFunc1(){
- otherFunc(booltestvar)
- }
- function otherFunc(booltestvar){
- if (booltestvar === true){
- console.log("true")
- booltestvar = false;
- }
- else {console.log("Уже не true")}
- }
- testFunc1();
- testFunc1();
- function otherFunc(booltestvar){ ... }
- function otherFunc(){ ... }
Add Comment
Please, Sign In to add comment