CapsCode

CapsCode

Share

A non profitable code learning platform

Reach us at: [email protected] We teach code to KIDS as well ADULTS.

Photos from CapsCode's post 01/04/2021

πŸ”· πŸ”· MERGING OBJECTS IN JAVASCRIPT πŸ”· πŸ”·

πŸ”Ή Merging object is the most often used scenario while working in the real-time projects & i have seen many beginner struggling with this by writing big codes.

🟑 But today i want to show the easiest way to merge two or more objects in

Two easiest way of doing so are,
βœ”οΈ using spread operator(...)
βœ”οΈ using Object.assign() method

πŸ”Έ DM for Queries, Content Creation for Instagram and Websites at very reasonable priceπŸ’² with high ➰
πŸ”Έ visit https://www.capscode.in/ #/services for our services

πŸ”Έ Follow .in for information and for Frontend Development tips.


@ India

Photos from CapsCode's post 14/03/2021

πŸ›‘ Can you style console.log() in JavaScript πŸ›‘

Hello Devs,

Can you style console.log in JavaScript

Just follow these 2 simple steps,
1. Add %c before the text you want to style.
2. Insert one more argument in the console log function with the style you want to apply.

Do Checkout soome of the examples:
1. console.log(`I LOVE πŸ’œ %c${name}`, 'color: green')
2. console.log(`I LOVE πŸ’œ %c${name}`, 'color: red; font-size: 50px')
3. console.log(`%cI LOVE πŸ’œ %c${name}`, 'color: red; font-size: 50px')

If you liked it, share the post with your friends.

Thanks,
CapsCode

@ India

Want your business to be the top-listed Computer & Electronics Service in Ranchi?
Click here to claim your Sponsored Listing.

Address


Ranchi
834005