1. Splice let arr = ["My name is ...."]; arr.splice(0, 1, "My name is Amar"); console.log(arr[0]); 2. Merge objects let obj1 = { id: 101, name: "John Doe" }; let obj2 = { age: 25, country: "USA" }; let person = { ...obj1, ...obj2, position: "Developer" }; console.log(person); 3. Function for skills function displayDetails(name, skills) { console.log("I am " + name + " skilled in " + skills.join(", ")); } displayDetails("Amar", ["Coding", "Design"]); displayDetails("John", ["Music", "Drawing"]); 4. Destructuring let data = { name: { firstName: "John", lastName: "Doe" }, age: 30, place: "California" }; let { firstName, lastName } = data.name; console.log("FirstName is " + firstName); console.log("LastName is " + lastName); 5. Fetch API fetch("https://jsonplaceholder.typicode.c...
Posts
- Get link
- X
- Other Apps
1. you / do / like / pizza / ? A.Do you like pizza? 2. am / I / feeling / tired / today / very A.I am feeling very tired today. 3. they / going / where / are / ? A.Where are they going? 4. have / breakfast / already / I / eaten A. I have already eaten breakfast 5. meeting / we / the / after / talk / can A.Can we talk after the meeting. 6. always / early / comes / she / work / to A.She always comes early to work 7. finish / I / will / soon / this / task A,I will finish this task soon. 8. not / is / working / laptop / my A.My laptop is not working 9. job / applying / for / he / is / a / new A.He is a new applying for job 10. coffee / have / you / want / a / do / ? A.Do you want have coffee? 11. raining / it / morning / was / this A.It was raining this morning. 12. the / report / you / send / did / ? A.Did you send the report? 13. tomorrow / holiday / is / there / a A.is there a holiday tomorrow? 14. car / her / driving / was / she A.She was driving her car 15. studying / exams / are...
- Get link
- X
- Other Apps
Kothu Chapathi, Ingredients: 3–4 chapathis (cut into small pieces) 1 onion (chopped) 1 tomato (chopped) 1 green chilli (chopped) 1 tsp ginger garlic paste ½ tsp turmeric 1 tsp chilli powder Salt (to taste) 1 egg (optional) Oil Curry leaves Coriander leaves Steps--------- Heat oil in a pan. Add curry leaves, onion, and green chilli. Sauté until soft. Add ginger garlic paste. Cook for a minute. Add tomato, turmeric, chilli powder, and salt. Cook till soft. (Optional) Add 1 egg, scramble and mix. Add chopped chapathi pieces. Mix well. Garnish with coriander leaves. Done!