If you are reading this article, then you must be familiar with the QR code. QR code stands for Quick Response code. It is actually a trademark for a type of matrix barcode.
In the above code, we are actually creating an object and pass the QR code text.
QR code with some options
In the above part of this article, I have just shown the basic usage of the QRcode.js library. But there are lots of more you can do which I am going to let you know.
See the example below first:
This time we have used configuration options to generate our QR code. We can set width and height, color and correct level for our QR code.
Methods of QRcode.js
The Qrcode.js library comes with methods clear() and().
The clear() method can clear the QR code on the page. Below is the usage of this method:
The makeCode() method is able to create the code. Below is its usage: