Hello people,
even though i’m quite old, I recently started to learn computer programming languages
(i’m studying also php and looking something about c sharp)
I’m tryed to learn javascript expecially to use it in google app script service…
Question could seem stupid, but it’s very important for me because i fell quite well now inside a single function, but i have a lot of doubts when i have to connect more functions inside a scritp tag.
The doubts I have are about the asynchronious factor that i don’t know excatly how it works (i mean aoutomatically, out of your control)
I will write a little scheme with pseudo-code for make my question clear.
<script>
call_function_1 () {
// do some job on the client (no callback here – it’s simple a function)
return a result
}
// line 1
var my_variabile = call_function_1 ()
// line 2
// do other things with the var my_variabile and the dom
// call other functions…
// or whatelse
</script>
I need to know if it’s possbile that javascript not execute at first the call_function_1
and if it’s possibile that javascript not wait the result of this function
before go ahead and start to work on line 2, calling other functions or whatelse
in other words am I syncronioyus in this way? (it’s what i want)
tks very much