+ 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.
4 odpowiedzi
+ 14
I guess you have to use the CDN.
+ 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 :)
+ 2
cdn is easiest... you could also copy/paste the entire script from those libraries lol... which would be stupid. just use the cdn 😊
+ 1
Thanks for the input everyone!