{ JamesCode }
Software Engineer || JavaScript || Ruby on Rails || React || Redux
More Posts
Methods and Miscellaneous Pt. 2
The first object that you pass into Object.assign is the same one that all the following objects that you pass to that method will be merged into along with its properties.
Methods and Miscellaneous Pt. 1
If you do not want to make any alterations to the object then the create method is perfect. Remember that by using Rails ActiveRecord::Base methods we can create an object using both the new method and the create method.
DOM Manipulation & Event Handling
You can use the DOM contains() method to check if a certain element is a descendant of another. This property will return a Boolean value revealing whether this is the case.
Familiarize Yourself with the Console
There will be times when you will not want to call a method on your class object and rather just want to see all the instances of that class and how they are ordered in that particular array.