bookmate game
en
Kitaplar
Loiane Groner

Learning JavaScript Data Structures and Algorithms

  • Tatiana Bunaevaalıntı yaptı4 yıl önce
    rrays in JavaScript are modified objects, meaning that every array that we create has a few methods available to be used.
  • Tatiana Bunaevaalıntı yaptı4 yıl önce
    stack is an ordered collection of items that follows the LIFO (short for Last In First Out) principle.
  • Tatiana Bunaevaalıntı yaptı4 yıl önce
    cope refers to where in the algorithm we can access the variable (it can also be a function when we are working with function scopes). There are local and global variables.
  • Tatiana Bunaevaalıntı yaptı4 yıl önce
    In object-oriented programming (OOP), an object is an instance of a class. A class defines the characteristics of the object.
  • Tatiana Bunaevaalıntı yaptı4 yıl önce
    In the prototype example, the printTitle function is going to be shared between all instances, and only one copy is going to be created. When we use class-based definition, as in the previous example, each instance will have its own copy of the functions. Using the prototype method saves memory and processing cost in regards to assigning the functions to the instance. However, you can only declare public functions and properties using the prototype method. With a class-based definition, you can declare private functions and properties and the other methods inside the class can also access them.
  • Tatiana Bunaevaalıntı yaptı4 yıl önce
    However, using the new keyword is not a best practice. If you want to create an array in JavaScript, simply use brackets
  • Tatiana Bunaevaalıntı yaptı4 yıl önce
    JavaScript only supports one-dimensional arrays; it does not support matrices. However, we can implement matrices or any multidimensional array by using an array of arrays, as in the previous code
  • rootartalıntı yaptı7 yıl önce
    In object-oriented programming (OOP), an object is an instance of a class. A class defines the characteristics of the object.
  • rootartalıntı yaptı7 yıl önce
    Scope refers to where in the algorithm we can access the variable
fb2epub
Dosyalarınızı sürükleyin ve bırakın (bir kerede en fazla 5 tane)