if we write 2 or more functions in the javascript how can we call all the funtions at the same time? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

if we write 2 or more functions in the javascript how can we call all the funtions at the same time?

18th Jun 2016, 2:25 AM
an na
an na - avatar
3 Answers
0
onClick="doSomething();doSomethingElse();" you can do like this
18th Jun 2016, 4:13 AM
Mayur Shedage
Mayur Shedage - avatar
0
you can call on function from onclick and call other functions from this function
18th Jun 2016, 4:14 AM
sourabh shrivastava
sourabh shrivastava - avatar
0
or you can make a new function that calls all the other functions and call the new function.
18th Jun 2016, 4:49 PM
Kayla