Site Tools


Hotfix release available: 2026-07-14a "Mort". upgrade now! [57.1] (what's this?)
New release available: 2026-07-14 "Mort". upgrade now! [57] (what's this?)
Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
notes:javascript_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:javascript_cheat_sheet [2026/07/30 04:55]
14.240.120.58 old revision restored (2026/05/19 19:04)
notes:javascript_cheat_sheet [2026/07/31 14:34] (current)
101.47.19.212 old revision restored (2026/06/04 14:43)
Line 71: Line 71:
 personObj.newfirstname = personObj.newfirstname =
  function (new_firstname)  function (new_firstname)
-   { this.lastname=new_lastname; } </code>+   { this.firstname=new_firstname; } </code>
   * Objects can be created using a template <code javascript>   * Objects can be created using a template <code javascript>
 function person(firstname) { function person(firstname) {
Line 77: Line 77:
   this.newfirstname =   this.newfirstname =
     function (new_firstname)     function (new_firstname)
-    { this.lastname=new_lastname; }+    { this.firstname=new_firstname; }
 } }
 myFather=new person("John");</code> myFather=new person("John");</code>
Line 88: Line 88:
 function newfirstname(new_firstname) function newfirstname(new_firstname)
 { this.firstname=new_firstname; } </code> { this.firstname=new_firstname; } </code>
 +
 ==== Predefined Objects ==== ==== Predefined Objects ====
   * String objects have a length property and methods including: indexOf, match, replace   * String objects have a length property and methods including: indexOf, match, replace
notes/javascript_cheat_sheet.1785412504.txt.gz · Last modified: 2026/07/30 04:55 by 14.240.120.58