Hey guys,
Id basically like to know if it is possible, and how to pull off to use a function to change the content of a variable that was made in the function that runs the function that changes said variable. This is an example I made for my problem:
Thanks in advance!
Id basically like to know if it is possible, and how to pull off to use a function to change the content of a variable that was made in the function that runs the function that changes said variable. This is an example I made for my problem:
Code:
function functiondad() {
var turbotest = 2;
functionson(turbotest)
console.log(turbotest)
}
function functionson(A) {
A = 4;
}
Thanks in advance!