I am reading Professional JavaScript for web developers 3rd ed. , and in the summary of chapter 4 you can read:
Two types of values ββcan be stored in JavaScript variables: primitive values ββand reference values. Primitive values ββhave one of five primitive data types: Undefined, Null, Boolean, Number, and String. Primitive and reference values ββhave the following characteristics:Primitive values ββhave a fixed size and therefore are stored in memory on the stack.
Two types of values ββcan be stored in JavaScript variables: primitive values ββand reference values. Primitive values ββhave one of five primitive data types: Undefined, Null, Boolean, Number, and String. Primitive and reference values ββhave the following characteristics:
But I can have different lines, say:
var a = "ABC";//orvar b = "Some very annoyingly long string ..."
var a = "ABC";
//or
var b = "Some very annoyingly long string ..."
They obviously vary in size, so how can they be allocated on the stack?
I believe that the same question can be asked by numbers ...
, - .
- , / ?
( ) , , .
, , , . - .
JavaScript , -, . JavaScript , .
, , . , , .
.
-, , .
-, , "".
-, , "" . , "" - , , , . JS- , . , , , , , , . "" , JS , .
, JS, - . .
Source: https://habr.com/ru/post/1611600/More articles:How to iterate over QStandardItemModel completely? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1611596/unable-to-add-values-with-objects-to-table-row&usg=ALkJrhg11oZ7vAXOvk90VMO3OKtIeqmyuwHadoop: Zipping files using MapReduce streaming, can I control the order of output parts? - javaGoogle charts setting grid value in barchart line - javascriptAngular UI: drop-down menu does not work with datepicker - angularjsGet the optimal threshold with a sensitivity of at least 75% with pROC in R - rHow to convert list to set in pandas? - pythonSpring Download - using environment variables in application.yml - springWhy does this give me the wrong conclusion for the loop? - pythonWhat does the value of $ mean? $ in the Perl function definition? - perlAll Articles