[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571522-105":53,"doc-detail-571522-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-cheat-sheet-beginners-essential","Javascript Cheat Sheet - Beginner’s Essential","","Beginner-friendly JavaScript cheat sheet covering essential web language syntax and practical building blocks. Topics include variable declarations (var, let, const), core data types, objects and arrays, common array methods, arithmetic and comparison operators, logical and bitwise operators, and function definitions. It also explains control flow with loops and if-else statements, string escaping and string methods, regular expressions, number and math basics, date handling, DOM nodes, browser work, events, and debugging/error concepts.",{"@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-cheat-sheet-beginners-essential/571522/",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-cheat-sheet-beginners-essential/571522.png","ImageObject",442,249,{"name":88,"@type":89},"xXChrisXx","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-21","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",6,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"Which keywords are used to declare variables in this cheat sheet?","Question",{"text":109,"@type":110},"It lists var, const, and let, along with brief rules for reassignment and scope behavior.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"What are some common array methods included?",{"text":114,"@type":110},"The sheet includes concat, indexOf, join, lastIndexOf, pop, push, reverse, shift, slice, sort, splice, toString, unshift, and valueOf.",{"name":116,"@type":107,"acceptedAnswer":117},"How does the cheat sheet cover output and debugging in the browser?",{"text":118,"@type":110},"It includes alert(), confirm(), console.log(), and document.write(), and notes console.log as useful for debugging.","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},571522,1792338026,{"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":142},8796112263567,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Beginner’s Essential  \nJavascript Cheat Sheet  \nThe language of the web.  \nTable of Contents  \nJavascript Basics 2  \nVariables 2  \nArrays 3  \nOperators 4  \nFunctions 5  \nLoops 7  \nIf-Else Statements 7  \nStrings 7  \nRegular Expressions 9  \nNumbers and Math 10  \nDealing with Dates 12  \nDOM Node 14  \nWorking with the Browser 18  \nEvents 21  \nErrors 27  \n[WebsiteSetup.org-Beginner](WebsiteSetup.org-Beginner)’s Javascript Cheat Sheet 1  \nJavascript Basics  \nIncluding JavaScript in an HTML Page  \n\u003Cscript type= \"text/javascript \">  \n//JS code goes here  \n\u003C/script>  \nCall an External JavaScript File  \n\u003Cscript src= \"myscript .js \">\u003C/script>\u003Ccode>\u003C/code>  \nIncluding Comments  \n//  \nSingle line comments  \n/* comment here */  \nMulti-line comments  \nVariables  \nvar , const , let  \nvar  \nThe most common variable. Can be reassigned but only accessed within a function. Variables defined with var move to the top when code is executed.  \nconst  \nCannot be reassigned and not accessible before they appear within the code.  \nlet  \nSimilar to const, however, let variable can be reassigned but not re-declared.  \nData Types  \nvar age = 23  \nNumbers  \nvar x  \nVariables  \n[WebsiteSetup.org-Beginner](WebsiteSetup.org-Beginner)’s Javascript Cheat Sheet 2  \nvar a = \"init \"  \nText (strings)  \nvar b = 1 + 2 + 3  \nOperations  \nvar c = true  \nTrue or false statements  \nconst PI = 3 .14  \nConstant numbers  \nvar name = {firstName: \"John \" , lastName:”Doe \" }  \nObjects  \nObjects  \nvar person = {  \nfirstName: \"John \" ,  \nlastName: \"Doe \" ,  \nage:20 ,  \nnationality: \"German \"  \n} ;  \nArrays  \nvar fruit = [ \"Banana \" , \"Apple \" , \"Pear \" ] ;  \nArray Methods  \nconcat ()  \nJoin several arrays into one  \nindexOf ()  \nReturns the first position at which a given element appears in an array  \njoin ()  \nCombine elements of an array into a single string and return the string  \nlastIndexOf ()  \nGives the last position at which a given element appears in an array  \n[WebsiteSetup.org-Beginner](WebsiteSetup.org-Beginner)’s Javascript Cheat Sheet 3  \npop ()  \nRemoves the last element of an array  \npush ()  \nAdd a new element at the end  \nreverse ()  \nReverse the order of the elements in an array  \nshift ()  \nRemove the first element of an array  \nslice ()  \nPulls a copy of a portion of an array into a new array of 4 24  \nsort ()  \nSorts elements alphabetically  \nsplice ()  \nAdds elements in a specified way and position  \ntoString ()  \nConverts elements to strings  \nunshift ()  \nAdds a new element to the beginning  \nvalueOf ()  \nReturns the primitive value of the specified object  \nOperators  \nBasic Operators  \n+ Addition  \n- Subtraction  \n* Multiplication / Division ( . . ) Grouping operator % Modulus (remainder)++ Increment numbers- - Decrement numbers  \n[WebsiteSetup.org-Beginner](WebsiteSetup.org-Beginner)’s Javascript Cheat Sheet 4  \nComparison Operators  \n== Equal to  \n=== Equal value and equal type  \n!= Not equal  \n!== Not equal value or not equal type  \n> Greater than  \n\u003C Less than  \n>= Greater than or equal to  \n\u003C= Less than or equal to  \n? Ternary operator  \nLogical Operators  \n&& Logical and  \n|| Logical or  \n! Logical not  \nBitwise Operators  \n& AND statement  \n| OR statement  \n~ NOT  \n^ XOR  \n\u003C\u003C Left shift  \n>> Right shift  \n>>> Zero fill right shift  \nFunctions  \nfunction name (parameter1 , parameter2 , parameter3) {  \n// what the function does  \n}  \nOutputting Data  \nalert ()  \nOutput data in an alert box in the browser window  \nconfirm ()  \nOpens up a yes/no dialog and returns true/false depending on user click  \nconsole .log ()  \nWrites information to the browser console, good for debugging purposes  \n[WebsiteSetup.org-Beginner](WebsiteSetup.org-Beginner)’s Javascript Cheat Sheet 5  \ndocument .write ()  \nWrite directly to the HTML document  \nprompt ()  \nCreates an dialogue for user input  \nGlobal Functions  \ndecodeURI ()  \nDecodes a Uniform Resource Identifier ( URI) created by encodeURI or similar  \ndecodeURIComponent ()  \nDecodes a URI component  \nencodeURI ()","cbCaihU2B3vt6NFS","https://ap.wps.com/l/cbCaihU2B3vt6NFS","pdf",254323,29,"English","# Javascript Basics\n## Variables\n## Arrays\n## Operators\n## Functions\n## Loops\n## If-Else Statements\n## Strings\n## Regular Expressions\n## Numbers and Math\n## Dealing with Dates\n## DOM Node\n## Working with the Browser\n## Events\n## Errors","[{\"question\":\"Which keywords are used to declare variables in this cheat sheet?\",\"answer\":\"It lists var, const, and let, along with brief rules for reassignment and scope behavior.\"},{\"question\":\"What are some common array methods included?\",\"answer\":\"The sheet includes concat, indexOf, join, lastIndexOf, pop, push, reverse, shift, slice, sort, splice, toString, unshift, and valueOf.\"},{\"question\":\"How does the cheat sheet cover output and debugging in the browser?\",\"answer\":\"It includes alert(), confirm(), console.log(), and document.write(), and notes console.log as useful for debugging.\"}]","Javascript Cheat Sheet - Beginner’s Essential | PDF",1791921873,10]