Skip to content
murmot

Results for “javascript create method array of objects name example code java site:javascript.info”

  • javascript.info

    Objects - The Modern JavaScript Tutorial

    Feb 17, 2026 ... A property is a “key: value” pair, where key is a string (also called a “property name”), and value can be anything. We can imagine an object as ...

  • javascript.info

    Map to objects

    You have an array of user objects, each one has name , surname and id . Write the code to create another array from it, of objects with id and fullName , where fullName is generated from name and surname . For instance

  • javascript.info

    Prototype methods, objects without __proto

    "Very plain" objects. As we know, objects can be used as associative arrays to store key/value pairs. …But if we try to store user-provided keys in it (for instance, a user-entered dictionary), we can see an interesting glitch: all keys work fine except "__proto__". Check out the example

  • javascript.info

    Object methods, "this"

    Object methods, "this". Objects are usually created to represent entities of the real world, like users, orders and so onActions are represented in JavaScript by functions in properties. Method examples. For a start, let’s teach the user to say hello

  • javascript.info

    Methods of RegExp and String

    The method str.matchAll(regexp) is a “newer, improved” variant of str.match. It’s used mainly to search for all matches with all groups. There are 3 differences from match: It returns an iterable object with matches instead of an array. We can make a regular array from it using Array.from.