Browse By Tags

  • Easy JavaScript Part 13: Four Ways to Create Objects in JavaScript

    In JavaScript, there are four methods to use to create an object:

    1. Object literals
    2. New operator or constructor
    3. Object.create method
    4. Class

    In this post, we will learn each of these methods. 

    Object literals 

    An object literal, also called an object initializer…

  • Easy JavaScript Part 10: Class in JavaScript?

    ECMAScript 6 introduced the class keyword to create classes in JavaScript. Now, you can just use the class attribute to create a class in JavaScript. Before ECMA 6, whenever you called a function using a new operator, the function returned a new object…

  • DataSource Class within a Class what to put in the Key field for bind

    Hi,

    This is my class structure.  How do I reference the Name property of the Details class, it currently fails and throws a javascript error with no data in the Name field.  Forgive my syntax if it's incorrect as this is an example that follows the concept…