G
G
GreenMan18992018-01-31 17:23:37
JavaScript
GreenMan1899, 2018-01-31 17:23:37

How to call one function if another one is executed?

How to call one function if another one is executed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvvi, 2018-01-31
@GreenMan1899

function func1 () {
  console.log('world')
}

function func2 () {
  console.log('hello') 
  func1() 
}

func2()

So?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question