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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -