Unable to link project with js

I want to link the project with web application

I followed the doc but I am getting an error

backendless.js:6 Uncaught ReferenceError: Backendless is not defined
    at backendless.js:6

my HTML file

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
 
<script type="text/javascript" src="/js/backendless.js"></script> 
<script type="text/javascript" src="https://api.backendless.com/sdk/js/latest/backendless.min.js"></script>
 
  
</head>

java script file

var APP_ID = '6E1677DA-****-****-****-B7DE756AEF66';
var API_KEY = '26A97A6A-****-****-****-35346DFD2905';

Backendless.initApp(APP_ID, API_KEY);

Backendless.Data.of( "TestTable" ).save( { foo:"bar" } )
    .then( function( obj ) {
        console.log( "object saved. objectId " + obj.objectId )
    } )
    .catch( function( error ) {
        console.log( "got error - " + error )
    })

Hello @Saad_Zahoor2

Try to change the loading order

<script type="text/javascript" src="https://api.backendless.com/sdk/js/latest/backendless.min.js"></script>
<script type="text/javascript" src="/js/backendless.js"></script> 

Regards, Vlad

1 Like

Oh how simple it was and I wasted an approx an hour