
The Map object store key-value pairs and remembers the original insertion order of the keys
The set object store unique value of any types, It’s maybe primitive or object types
JavaScript and Python are popular programming languages used for different purposes. Some key differences between the two include: Syntax Python has a more straightforward and simple syntax, while JavaScript uses a syntax that is closer to C programming language. Interpreted vs Compiled Python is an interpreted language, meaning that its code is executed line by … Read more How JavaScript is different from python
Observers ๐ง Observer lives longer.It can be attached & detached at any time.It is used when method is not directly associated to life cycle of Active Record objects.If you want to create observer with command-line you need to add gem first because without observer gem you couldnโt run any observer generator command so first add … Read more Ruby on Rails : Callbacks V/S Observers
The Map object store key-value pairs and remembers the original insertion order of the keys
The set object store unique value of any types, It’s maybe primitive or object types
Map and filter method used for operation on the array. Like select element or operation each element, Before filter and map method we use normally for and forEach method.
Unbelievable Feature release by ES6. it’s called spread operator or rest operator
The spread operator is used for spread syntax. This operator use in array and object. We also called spread elements