[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571524-105":53,"doc-detail-571524-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-quick-reference","JavaScript Cheat Sheet - Quick Reference","","JavaScript cheat sheet compiling core language methods and built-in functions for Strings, RegEx, Arrays, Numbers, and Dates, along with common Date/Time and numeric formatting APIs. Includes regular expression syntax with modifiers, patterns, and event handler names. Provides examples for client-side HTTP requests via XML[HTTP] variations, plus HTML embedding of external and inline scripts. Also summarizes DOM concepts, including document, node, form, range, style, and event methods.",{"@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":51,"@type":70,"position":76},"https://docshare.wps.com/template/general/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/javascript-cheat-sheet-quick-reference/571524/",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-quick-reference/571524.png","ImageObject",442,249,{"name":88,"@type":89},"DoDO","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 most common String methods listed in the cheat sheet?","Question",{"text":109,"@type":110},"It lists charAt/charCodeAt/fromCharCode, concat, indexOf/lastIndexOf, localeCompare, replace, search, slice, split, substring/substr, toLowerCase/toUpperCase and locale variants.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How does the cheat sheet describe JavaScript regular expressions?",{"text":114,"@type":110},"It shows the form /pattern/modifiers and provides modifiers like /g, /i, /s, /m, plus pattern examples such as anchors (^, $), alternation (a|b), character classes ([abc]), and quantifiers (a?, a*, a+, a{3}, a{3,6}).",{"name":116,"@type":107,"acceptedAnswer":117},"Which DOM and event-related features are included?",{"text":118,"@type":110},"It summarizes DOM methods for Document/Node/Form/Range/Style/Event, and lists common event handler names such as onClick, onLoad, onSubmit, and onUnload.","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},571524,1792086183,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":50,"category_name":51,"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":9,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":4},962093270745,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Methods  \nObject  \ntoString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable  \nString  \ncharAt charCodeAt fromCharCode concat indexOf lastIndexOf localeCompare match  \nreplace search slice  \nsplit substring substr toLowerCase  \ntoUpperCase toLocaleLowerCase  \ntoLocaleUpperCase  \nRegEx  \ntest match exec  \nArray  \nconcat join push pop reverse shift  \nslice sort splice unshift  \nNumber  \ntoFixed toExponential toPrecision  \nDate  \nparsetoDateString  \ntoTimeString getDate  \ngetDay getFullYear getHours getMilliseconds getMinutes  \ngetMonth getSeconds getTime getTimezoneOffset getYear  \nsetDate  \nsetHours setMilliseconds setMinutes setMonth setSeconds setYear  \ntoLocaleTimeString  \nJavaScript  \nXML[HttpRequest](HttpRequest)  \nSafari, Mozilla, Opera:  \nvar req = new XML[HttpRequest](HttpRequest)();  \nInternet Explorer:  \nvar req = new  \nActiveXObject(\"Microsoft.XML[HTTP](HTTP)\");  \nXML[HttpRequest](HttpRequest Object Methods)[ Object Methods](HttpRequest Object Methods)  \nabort()  \ngetAllResponseHeaders() getResponseHeader(header) open(method, URL)  \nsend(body) setRequestHeader(header,  \nXML[HttpRequest](HttpRequest Object)[ Object](HttpRequest Object) Properties  \nonreadystatechange  \nreadyState  \nresponseText  \nresponseXML  \nstatus  \nstatusText  \nXML[HttpRequest](HttpRequest) readyState Values  \n0 Uninitiated  \n1 Loading  \n2 Loaded  \n3 Interactive  \n4 Complete  \nJAVASCRIPT IN HTML  \nExternal JavaScript File  \n\u003Cscript type=\"text/javascript\"src=\"javascript.js\">\u003C/script>  \nInline JavaScript  \n\u003Cscript type=\"text/javascript\">\u003C!--  \n// JavaScript Here //-->  \n\u003C/script>  \nFunctions  \nWindow  \nalert  \nblur clearTimeout close  \nfocus open print setTimeout  \nBuilt In  \nevalparseInt  \nparseFloat isNaN  \nisFinite decodeURI  \ndecodeURIComponent encodeURI  \nencodeURIComponent escape  \nunescape  \nREGULAR EXPRESSIONS-FORMAT  \nRegular expressions in JavaScript take the form:  \nvar RegEx = /pattern/modifiers ;  \nREGULAR EXPRESSIONS-MODIFIERS  \n/g  \n/i  \n/s  \n/m  \nGlobal matching Case insensitive Single line mode Multi line mode  \nREGULAR EXPRESSIONS-PATTERNS  \n^  \n$  \n.  \n(a|b)  \n(...)[abc]  \n[^abc] a?  \na*  \na+  \na{3} a{3,}  \na{3,6}!(pattern)  \nStart of string End of string Any single character a or b  \nGroup section  \nItem in range (a or b or c) Not in range (not a or b or c) Zero or one of a  \nZero or more of a One or more of a Exactly 3 of a  \n3 or more of a  \nBetween 3 and 6 of a  \n\"Not\" prefix. Apply rule when URL does not match pattern.  \nEVENT HANDLERS  \nonAbort  \nonBlur  \nonChange  \nonClick  \nonDblClick  \nonDragDrop  \nonError  \nonFocus  \nonKeyDown  \nonKeyPress  \nonKeyUp  \nonLoad  \nonMouseDown  \nonMouseMove  \nonMouseOut  \nonMouseOver  \nonMouseUp  \nonMove  \nonReset  \nonResize  \nonSelect  \nonSubmit  \nonUnload  \nFUNCTIONS AND METHODS  \nA method is a type of function, associated with an object. A normal function is not associated with an object.  \nAvailable free from [AddedBytes.com](AddedBytes.com)  \nDOM Methods  \nDocument  \nclear  \ncreateDocument  \ncreateDocumentFragment createElement  \ncreateEvent  \ncreateEventObject createRange  \ncreateTextNode  \ngetElementsByTagName  \ngetElementById write  \nNode  \naddEventListener appendChild attachEvent cloneNode createTextRange detachEvent dispatchEvent fireEvent getAttributeNS  \ngetAttributeNode hasChildNodes  \nhasAttribute  \nhasAttributes insertBefore removeChild removeEventListener replaceChild scrollIntoView  \nForm  \nsubmit  \nDOM Collections  \nitem  \nRange  \ncollapse createContextualFragment moveEnd  \nmoveStart parentElement select setStartBefore  \nStyle  \ngetPropertyValue setProperty  \nEvent  \ninitEvent preventDefault stopPropagation  \nXMLSerializer  \nserializeToString  \nXML [HTTP](HTTP)  \nopen send  \nXMLDOM  \nloadXML  \nDOMParser  \nparseFromString","cbCaiiB35AtVBLvd","https://ap.wps.com/l/cbCaiiB35AtVBLvd","pdf",463802,"English","# JavaScript Methods\n## String\n## RegEx\n## Array\n## Number\n## Date\n# JavaScript in HTML\n## External JavaScript File\n## Inline JavaScript\n# Functions and Built-In Methods\n## Window\n## Built In\n## DOM Methods\n## DOM Collections\n## Event Handlers","[{\"question\":\"What are the most common String methods listed in the cheat sheet?\",\"answer\":\"It lists charAt/charCodeAt/fromCharCode, concat, indexOf/lastIndexOf, localeCompare, replace, search, slice, split, substring/substr, toLowerCase/toUpperCase and locale variants.\"},{\"question\":\"How does the cheat sheet describe JavaScript regular expressions?\",\"answer\":\"It shows the form /pattern/modifiers and provides modifiers like /g, /i, /s, /m, plus pattern examples such as anchors (^, $), alternation (a|b), character classes ([abc]), and quantifiers (a?, a*, a+, a{3}, a{3,6}).\"},{\"question\":\"Which DOM and event-related features are included?\",\"answer\":\"It summarizes DOM methods for Document/Node/Form/Range/Style/Event, and lists common event handler names such as onClick, onLoad, onSubmit, and onUnload.\"}]","JavaScript Cheat Sheet - Quick Reference | PDF",1791921875]