- 2

How to work both functions at the same time.

Help me please 🥺

9th May 2021, 7:55 PM
Syuzi Ghazaryan
Syuzi Ghazaryan - avatar
7 Respostas
+ 2
Do you mean executing two functions at the same time? Do you have an exemple of what you are trying to do?
9th May 2021, 8:46 PM
Apollo-Roboto
Apollo-Roboto - avatar
0
function main() { var distance = parseInt(readLine(), 10); //ваш код var distance =40; minut=590; let x= (590/40*60); console .log(x) } function main() { var distance = parseInt(readLine(), 10); var distance =40; minut=100; let y=(100/40*60) console .log(y)
9th May 2021, 11:29 PM
Syuzi Ghazaryan
Syuzi Ghazaryan - avatar
0
What you can say about my code?
9th May 2021, 11:33 PM
Syuzi Ghazaryan
Syuzi Ghazaryan - avatar
0
if you have two function with the same name, the first one will be overritten. try giving it a different name
10th May 2021, 12:53 AM
Apollo-Roboto
Apollo-Roboto - avatar
0
Thanks so much.
10th May 2021, 2:28 AM
Syuzi Ghazaryan
Syuzi Ghazaryan - avatar
0
I didn't think.
10th May 2021, 2:30 AM
Syuzi Ghazaryan
Syuzi Ghazaryan - avatar
- 1
Yes l do.
9th May 2021, 11:12 PM
Syuzi Ghazaryan
Syuzi Ghazaryan - avatar