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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -