Please enable JavaScript.
Coggle requires JavaScript to display documents.
javascript, JAVASCRIPT, DOUBTS - Coggle Diagram
-
JAVASCRIPT
types
object type
-
-
ARRAYS
CAN BE SPARSE
MEANS YOU CAN SET AN VALUE AT ANY INDEX IRRESPECTIVE THAT VALUES FOR INDICES IN BETWEEN HAVE BEEN DEFINED OR NOT
-
ARRAYS ARE OBJECTS WITH PROPERTIES INDICES LIKE 0 , 1 ,2...
6 primitive types
-
-
they are
Undefined
automatically assign to a variable when we havent assigned value for that variable BUT WE HAVE DEFINED THE VARIABLE
-
-
-
-
-
-
-
-
-
-
for loops
initialize a variable , condition , increment or decrement (note incr or decr takes place after the loop has been executed )
-
-
-
-
-
although javascript has automatic semicolon insertion but it can lead to problem so always put the semicolons
-
-
-
-
-
-
-
if a inside a script ibn html there is a syntax error then JavaScript stops the execution of the script inside the tag BUT NOTE that if there are other scripts tags below it they will be executed
-
-