Answers for "how to call a script from another script in javascript"

0

how to call a script from another script in javascript

<script type="text/javascript" src="file1.js"></script>
<script type="text/javascript" src="file2.js"></script>
<script type="text/javascript">
    alertOne( );
</script>
Posted by: Guest on July-22-2020
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 "how to call a script from another script in javascript"

Browse Popular Code Answers by Language