# Can you style console.log() in JavaScript

Hello Devs,

Is it possible to style cosole.log() in JavaScript ?
Its YES.

Have you ever tried this ?
If No, then lets do it together in 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 some of these examples:


```javascript
console.log(`I LOVE 💜 %c${name}`, 'color: green')
```
>will produce

>![1.JPG](https://cdn.hashnode.com/res/hashnode/image/upload/v1615658157862/gyeqNrsOL.jpeg)
-------------

```javascript
console.log(`I LOVE 💜 %c${name}`, 'color: red; font-size: 50px')
```
>will produce

>![2.JPG](https://cdn.hashnode.com/res/hashnode/image/upload/v1615658183055/NqSuOmoiy.jpeg)
----------------

```javascript
console.log(`%cI LOVE 💜 %c${name}`, 'color: red; font-size: 50px')
```
>will produce

>![3.JPG](https://cdn.hashnode.com/res/hashnode/image/upload/v1615658198120/d3OnjDsgj.jpeg)


If you liked this, please let me know in the comment.



Thanks,

CapsCode
