mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-30 07:08:01 -08:00
Compare commits
4 Commits
0826554b28
...
c77f150d7d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c77f150d7d | ||
|
|
d63d75bb28 | ||
|
|
94087440e5 | ||
|
|
3528d92fcb |
@@ -185,7 +185,6 @@ width="" <!-- Describes the width of th
|
||||
<!-- Some other useful tags -->
|
||||
|
||||
<canvas></canvas> <!-- Allows to draw 2D shapes on the web page with the help of javascript -->
|
||||
<keygen> <!-- Represents a control for generating a public-private key pair -->
|
||||
<map></map> <!-- Specifies an image map -->
|
||||
|
||||
<!-- Collective Character Obejcts -->
|
||||
|
||||
@@ -1,3 +1,25 @@
|
||||
/* *******************************************************************************************
|
||||
* GETTING STARTED WITH THE WEB > JAVASCRIPT BASICS
|
||||
* https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics
|
||||
* ******************************************************************************************* */
|
||||
|
||||
// Variables & Data Types
|
||||
let someVariable; // Declaring a variable.
|
||||
someVariable = 'variableValue'; // Assigning a value to a predefined variable.
|
||||
someVariable; // Calling a variable. Its name points to the value it stores.
|
||||
|
||||
let stirngVariable = 'string'; // Type: String
|
||||
let numberVariable = 1; // Type: Number
|
||||
let booleanVariable = true; // Type: Boolean
|
||||
let arrayVariable = [0, 1, 2, 3]; // Type: Array
|
||||
let objectVariable = { key: 'value'}; // Type: Object
|
||||
|
||||
// Comments
|
||||
// This is a one-line comment
|
||||
/*
|
||||
Everything in between is a comment.
|
||||
*/
|
||||
|
||||
/* *******************************************************************************************
|
||||
* GLOBAL OBJECTS > OBJECT
|
||||
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
|
||||
|
||||
Reference in New Issue
Block a user