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
Post a Comment