How to display images in the JS Developer Console

How to display images in the JS Developer Console

There is a JavaScript library that we need to use for this. Name: Console.image

This library answers the question of How to display images in the JS Developer Console.

To get started with this library on your project, download a copy of the minified code or the source code and add a reference to the file in your document using a script tag:

<!-- Add a reference from a local file -->
<script src="console.image.min.js">

<!-- Or use a CDN -->
<script src="https://cdn.rawgit.com/adriancooney/console.image/c9e6d4fd/console.image.min.js">

After adding it, open the console and run the code below.

console.image("http://kodblogu.net/wp-content/uploads/2020/03/cropped-kodblogulogo.png.webp");

Paylaş:

Yorum yapın