CapsCode
A non profitable code learning platform
Reach us at: [email protected] We teach code to KIDS as well ADULTS.
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
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
Click here to claim your Sponsored Listing.
Category
Website
Address
Ranchi
834005