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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -