How to read a return value from another function in another javascript file -


i need read return value function javascript file. using test complete tool javascript

javascriptfile1

function myfunction1()     {     // marks need display myfunction2 } 

javascriptfile2

function myfunction2()     {      var marks= 10; } 

in javascriptfile1

export default function myfunction1() {     return 10 } 

in javascriptfile2

import myfunction1 './javascriptfile1'  function myfunction2() {      var marks = myfunction1() } 

Comments

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

string - Using python and postgres, variables within execute function? -