+ 1
How to include jQuery from a website
And what is the main use of Var variablename = []; And Car variablename = true;
2 ответов
+ 1
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> is the cdn for linking 3.2.1 version of jquery.
Var name = [] is making a variable that is holding an array. Example: [ 1 ,4, 9 ] or ['Bob', 'Jill']. You can put data inside it basically.
The second one is making a boolean value. Basically just a way to keep track if something happens. Example: var isLogedIn = true, var isAPotato = false.