[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571526-105":53,"doc-detail-571526-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","javascript-cheatsheet-learn-javascript-correctly","JavaScript Cheatsheet - Learn JavaScript Correctly","","JavaScript Cheatsheet page content provides an organized reference for core JavaScript fundamentals, including the seven data types (string, number, boolean, null, undefined, symbol, object) and examples for arrays and objects using key-value notation. It explains vocabulary terms such as keywords/reserved words, statements, and expressions, then introduces functions with declaration, parameters/arguments, invocation, return behavior, and code blocks. It further covers variable concepts like declaration, initialization, assignment, hoisting, and scope (global, functional, lexical environment) plus an operator overview with arithmetic and assignment forms.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/javascript-cheatsheet-learn-javascript-correctly/571526/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/javascript-cheatsheet-learn-javascript-correctly/571526.png","ImageObject",442,249,{"name":88,"@type":89},"Supernature","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-22","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",7,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"What are the seven data types listed in the cheatsheet?","Question",{"text":109,"@type":110},"The cheatsheet lists: String, Number, Boolean, Null, Undefined, Symbol, and Object.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How does the cheatsheet define a function in JavaScript?",{"text":114,"@type":110},"A function is described as code bundled in a section that runs only when called, supporting organizing code and reusability.",{"name":116,"@type":107,"acceptedAnswer":117},"What is hoisting and how is scope explained?",{"text":118,"@type":110},"Hoisting is explained as variables being declared at the top of the function automatically, with initialization when the code runs; scope is the limits where a variable exists, including global scope, function scope, lexical scope, and scope chain lookup behavior.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},571526,1792022586,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":136,"language":137,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":138,"faqs":139,"seo_title":140,"seo_description":61,"update_tm":141,"read_time":47},962093270004,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","\u003C♥> iLoveCoding JavaScript Cheatsheet Page 1   \n Learn JavaScript Correctly (Video course) [https://ilovecoding.org/courses/js2](https://ilovecoding.org/courses/js2)   \n1 Seven (7) Types ~~ ~~  \nSix Primitive Types  \n{  \n1. String  \n2. Number  \n3. Boolean  \n4. Null  \n5. Undefined  \n6. Symbol  \n7. Object  \n- Array  \n- Function  \n\"Any text \"  \n123.45  \ntrue or false  \nnull undefined  \nSymbol('something')  \n{ key: 'value'}[ 1 , \"text\", false] function name () { }  \n3 Object ~~ ~~  \n2 Basic Vocabulary ~~ ~~  \nVariable Operator  \nA named reference to Operators are reserved-words that  \na value is a variable. perform action on values and variables.  \nExamples: + - = * in === typeof != ...  \nvar a = 7 + \"2\" ;  \n{  \n{  \nNote: var, let & const are all valid keywords to declare variables. The difference between them is covered on page 7 of this cheatsheet.  \nKeyword / reserved word  \nAny word that is part of the vocabulary of the programming language is called a keyword (a. k.a reserved word) . Examples: var = + if for...  \nStatement  \nA group of words, numbers and operators that do atask is a statement.  \nExpression  \nA reference, value or a group of reference(s) and value(s) combined with operator(s), which result in a single value.  \nvar user = {  \nname: \"Aziz Ali\", yearOfBirth: 1988 , calculateAge: function(){  \n// some code to calculate age  \n}  \n}  \nAn object is a data type in JavaScript that is used to store a combination of data in a simple key-value pair. Thats it.  \nKey  \nThese are the  \nkeys in user object.  \nValue  \nThese are the values of the respective keys in user object.  \nMethod  \nIf a key has a function as a value, its called a method.  \niLoveCoding  \n\"Don't just learn JavaScript-Become a Full-Stack JavaScript Developer\" [https://iLoveCoding.org](https://iLoveCoding.org)  \n{  \n \u003C♥> iLoveCoding JavaScript Cheatsheet Page 2   \n Learn JavaScript Correctly (Video course) [https://ilovecoding.org/courses/js2](https://ilovecoding.org/courses/js2)   \n Function ~~ ~~Parameters~~ ~~/~~ ~~Arguments  \nA function is simply a bunch of code bundled in a section. This bunch of code ONLY runs when the function is called. Functions allow for organizing code into sections and code reusability.  \nUsing a function has ONLY two parts. (1) Declaring/defining a function, and (2) using/running a function.  \nName of function  \nThats it, its just a name you give to your function. Tip: Make your function names descriptive to what the function does.  \n// Function declaration / Function statement function someName (param1 , param2 ){  \n// bunch of code as needed    \nvar a = param1 + \" love \" + param2 ;  \nreturn a ;}  \n// Invoke (run / call) a function  \nsomeName (\"Me\", \"You\")  \nReturn (optional)  \nA function can optionally spit-out or \"return\" a value once its invoked. Once a function returns, no further lines of code within the function run.  \n(optional)  \nA function can optionally take parameters (a.k.a arguments) . The function can then use this information within the code it has.  \nCode block  \nAny code within the curly braces { ... } is called a\"block of code\", \"code block\" or simply \"block\" . This concept is not just limited to functions. \"if statements\", \"for loops\"and other statements use code blocks as well.  \nInvoke a function  \nInvoking, calling or running a function all mean the same thing. When we write the function name, in this case someName, followed by the brackets symbol () like this  \nPassing parameter(s) to a function (optional)  \nAt the time of invoking a function, parameter(s) may be passed to the function code.  \nsomeName(), the code inside the function gets executed.  \n iLoveCoding  \n\"Don't just learn JavaScript-Become a Full-Stack JavaScript Developer\" [https://iLoveCoding.org](https://iLoveCoding.org)  \n \u003C♥> iLoveCoding JavaScript Cheatsheet Page 3   \n Learn JavaScript Correctly (Video course) [https://ilovecoding.org/courses/js2](https://ilovecoding.org/courses/js2)   \n5 Vocabulary around variables and scope ~~ ~~  \nvar ","cbCaij7t1MS0T58k","https://ap.wps.com/l/cbCaij7t1MS0T58k","pdf",873874,13,"English","# Seven (7) Types\n# Basic Vocabulary\n# Function\n## Parameters and Arguments\n## Code Block and Invocation\n# Variables and Scope\n## Hoisting\n## Global scope\n## Lexical Environment (Lexical scope)\n## Scope chain\n# Operators","[{\"question\":\"What are the seven data types listed in the cheatsheet?\",\"answer\":\"The cheatsheet lists: String, Number, Boolean, Null, Undefined, Symbol, and Object.\"},{\"question\":\"How does the cheatsheet define a function in JavaScript?\",\"answer\":\"A function is described as code bundled in a section that runs only when called, supporting organizing code and reusability.\"},{\"question\":\"What is hoisting and how is scope explained?\",\"answer\":\"Hoisting is explained as variables being declared at the top of the function automatically, with initialization when the code runs; scope is the limits where a variable exists, including global scope, function scope, lexical scope, and scope chain lookup behavior.\"}]","JavaScript Cheatsheet - Learn JavaScript Correctly | PDF",1791921882]