tell me about type of datastructures in javascript with examples, also highlight the most widely used ones
 In JavaScript, data structures are used to store and organize data in a way that is easy to access and manipulate. Here are some common data structures in JavaScript, along with examples:

1. Arrays: An array is a collection of values, which can be of any data type, including numbers, strings, objects, and even other arrays. Arrays are ordered, meaning that each value has a specific position, or index, within the array.

Example:
```javascript
let fruits = ['apple', 'banana', 'orange'];
console.log(fruits[1]); // outputs: banana
```
2. Objects: An object is a collection of key-value pairs, where each key is a string and the value can be any data type. Objects are unordered, meaning that the keys do not have a specific position within the object.

Example:
```javascript
let person = {
  name: 'John Doe',
  age: 30,
  occupation: 'Software Engineer'
};
console.log(person.name); // outputs: John Doe
```
3. Sets: A set is a collection of unique values, meaning that no two values in a set can be the same. Sets can be useful when you need to ensure that each value in a collection is unique.

Example:
```javascript
Here are some common data structures in JavaScript, along with examples and notes on their usage:

**1. Arrays**

An array is a collection of elements of the same data type stored in a single variable.

Example:
```
const colors = ['red', 'green', 'blue'];
```
Arrays are widely used in JavaScript for storing and manipulating collections of data.

**2. Objects**

An object is a collection of key-value pairs, where each key is a string and each value can be any data type.

Example:
```
const person = { name: 'John', age: 30, occupation: 'Developer' };
```
Objects are widely used in JavaScript for storing and manipulating data in a structured way.

**3. Sets**

A set is a collection of unique elements, without duplicates.

Example:
```
const uniqueColors = new Set(['red', 'green', 'blue','red']);
console.log(uniqueColors); // Output: Set {'red', 'green', 'blue' }
```
Sets are useful when you need to store a collection of unique elements, such as a list of unique IDs.

**4. Maps**

A map is a collection of key-value pairs, where each key is unique and can be any data type.

Example:
```
const personData = new Map([
  ['name', 'John'],
  ['age', 30],
  ['occupation', 'Developer']
]);
```
Maps are useful when you need to store a collection