how would i make a function which does something like
1. it takes in a value or it can not like test() works but also test(12) works.
2. if it receives a value than it stores it inside function. test(12) store 12
3. if it is just called then return stored value.
so like
test() // does not have to work since nothing is stored.
test(true) // store true
test() = true // return true
test(false) // store false
test() = false // return false
test() = false and so on. // return false