{"id":634,"date":"2019-03-23T17:46:32","date_gmt":"2019-03-24T00:46:32","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=634"},"modified":"2019-06-26T00:24:33","modified_gmt":"2019-06-26T07:24:33","slug":"javascript-es2015","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/javascript-2\/javascript-es2015\/","title":{"rendered":"JavaScript ES2015"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Built in Objects<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>A primitive value is a member of one of the following built-in types: Undefined, Null, Boolean, Number, String, and Symbol<\/li><li>an object is a member of the built-in type Object; and a function is a callable object. A function that is associated with an object via a property is called a method.<\/li><li>These built-in objects include the global object; objects that are fundamental to the runtime semantics of the language including: Object, Function, Boolean, Symbol, and various Error objects; <\/li><li>objects that represent and manipulate numeric values including Math, Number, and Date; <\/li><li>the text processing objects String and  RegExp; <\/li><li>objects that are indexed collections of values including Array and nine different kinds of Typed Arrays whose elements all have a specific numeric data representation; <\/li><li>keyed collections including Map and  Set objects; <\/li><li>objects supporting structured data including the JSON object, ArrayBuffer,  SharedArrayBuffer, and DataView; <\/li><li>objects supporting control abstractions including generator functions and Promise objects; and reflection objects including Proxy and Reflect.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Built-in operators<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>operators include various unary operations, multiplicative operators, additive operators, bitwise shift operators, relational operators, equality operators, binary bitwise operators, binary logical operators, assignment operators, and the comma operator.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Programs  <\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>programs are supported by modules which allow a program to be divided into multiple sequences of statements and declarations. <\/li><li>Each module explicitly identifies declarations it uses that need to be provided by other modules and which of its declarations are available for use by other modules.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Object<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Objects may be created in various ways including via a literal notation or via <em>constructors<\/em>&nbsp;which create objects and then execute code that initializes all or part of them by assigning initial values to their properties.&nbsp; <\/li><li> Each&nbsp;<a href=\"https:\/\/www.ecma-international.org\/ecma-262\/9.0\/index.html#constructor\">constructor<\/a> is a function that has a property named &#8220;prototype&#8221;&nbsp;that is used to implement <em>prototype-based inheritance<\/em>&nbsp;and&nbsp;<em>shared properties<\/em>. Objects are created by using constructors in&nbsp;<strong>new<\/strong>&nbsp;expressions <\/li><li>Every object created by a constructor has an implicit reference (called the object&#8217;s prototype) to the value of its constructor&#8217;s &#8220;prototype&#8221; property which may have a non-null implicit reference to its prototype; this is called the prototype chain. When a reference  property in an object, that reference is to the property of that name in the first object in the prototype chain that contains a property of that name. In other words, first the object mentioned directly is examined for such a property; if that object contains the named property, that is the property to which the reference refers; if that object does not contain the named property, the prototype for that object is examined next; and so on.<\/li><li> properties can be added to objects dynamically by assigning values to them. That is, constructors are not required to name or assign values to all or any of the constructed object&#8217;s properties <\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"declaringvariables\">Declaring variables (object to hold values)<\/h3>\n\n\n\n<p> <a href=\"https:\/\/www.sitepoint.com\/how-to-declare-variables-javascript\/\">let<\/a>  declares a variable object with modifiable value<br><a href=\"https:\/\/www.sitepoint.com\/how-to-declare-variables-javascript\/\">const<\/a> declares variable object whose value cannot be modified <\/p>\n\n\n\n<p><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Built in Objects A primitive value is a member of one of the following built-in types: Undefined, Null, Boolean, Number, String, and Symbol an object is a member of the built-in type Object; and a function is a callable object. A function that is associated with an object via a property is called a method. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/javascript-2\/javascript-es2015\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;JavaScript ES2015&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":582,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-634","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=634"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/634\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/582"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}