Answers for "access another javascript file and run"

0

how to call a script from another script in javascript

// File1.js
function alertNumber( n ) {
    alert( n );
};
// File2.js
function alertOne( ) {
    alertNumber( "one" );
};
// Inline
alertOne( ); // No errors
Posted by: Guest on July-22-2020

Code answers related to "access another javascript file and run"

Browse Popular Code Answers by Language