+ 1

How do I reference a JS library in sololearn? if it's possible.

I'm making a project in JavaScript but I don't know how to reference a JavaScript library.

18th Jan 2018, 8:39 AM
Alec Vindas
Alec Vindas - avatar
4 ответов
+ 14
I guess you have to use the CDN.
18th Jan 2018, 8:55 AM
Maz
Maz - avatar
+ 14
You can add a library by inserting it in the head tag of your HTML through the script tag. For example, if you want AngularJS: <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> </head> It's well known as a CDN actually :)
18th Jan 2018, 8:55 AM
Dev
Dev - avatar
+ 2
cdn is easiest... you could also copy/paste the entire script from those libraries lol... which would be stupid. just use the cdn 😊
22nd Jan 2018, 2:48 AM
Mike
Mike - avatar
+ 1
Thanks for the input everyone!
19th Jan 2018, 5:30 PM
Alec Vindas
Alec Vindas - avatar