Differences
This shows you the differences between two versions of the page.
javascript_faq [2014/06/06 11:06] |
javascript_faq [2021/04/05 11:23] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== JavaScript ====== | ||
+ | ===== Package Management ===== | ||
+ | NPM is used for package management. | ||
+ | |||
+ | curl http:// | ||
+ | ./configure | ||
+ | | ||
+ | This will install '' | ||
+ | |||
+ | ===== IDE ===== | ||
+ | Netbeans 8.0 has good JavaScript and even AngularJS support. | ||
+ | |||
+ | See [[https:// | ||
+ | |||
+ | ==== Project Setup ==== | ||
+ | File ⇒ New Project ⇒ HTML5 sets up a JavaScript project. | ||
+ | |||
+ | On Step 3 //Site Template// '' | ||
+ | |||
+ | Additional JavaScript libraries can be selected on step 4. | ||
+ | |||
+ | This will not completely setup the new project. | ||
+ | |||
+ | npm install | ||
+ | |||
+ | needs to be executed from the command line in the project directory. | ||
+ | |||
+ | ===== Libraries ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | ===== Tips ===== | ||
+ | |||
+ | ==== Console Output ==== | ||
+ | Output can be written by using the console. | ||
+ | |||
+ | console.log(" | ||
+ | |||
+ | ==== Lifetime of Variables ==== | ||
+ | The lifetime of a JavaScript variable starts when it is declared. | ||
+ | |||
+ | Local variables are deleted when the function is completed. | ||
+ | |||
+ | Global variables are deleted when you close the page. | ||
+ | |||
+ | ==== Number Properties ===== | ||
+ | * MAX_VALUE | ||
+ | * MIN_VALUE | ||
+ | * NEGATIVE_INFINITY | ||
+ | * POSITIVE_INFINITY | ||
+ | * NaN | ||
+ | * prototype | ||
+ | * constructor | ||
+ | |||
+ | Number properties belongs to JavaScript' | ||
+ | |||
+ | These properties can only be accessed as Number.MAX_VALUE. | ||
+ | |||
+ | Using num.MAX_VALUE, | ||
+ | |||
+ | |||
+ | ===== Links ===== | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | {{tag> |