+ 1

How to include jQuery from a website

And what is the main use of Var variablename = []; And Car variablename = true;

12th Nov 2018, 3:19 PM
Ali Tarek
Ali Tarek - avatar
2 Respostas
12th Nov 2018, 3:41 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 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.
12th Nov 2018, 3:40 PM
Mike