What is a QR code?
A QR code (abbreviated from Quick Response code) is a type of matrix barcode (or two-dimensional barcode) first designed in 1994 for the automotive industry in Japan. A barcode is a machine-readable optical label that contains information about the item to which it is attached.
In India, QR code got popularity due to UPI payment and many apps providing the feature to scan QRCode to make payments
You can download the QRCode.js utility and include qrcode.js as script.
QRCode method take two argument first one is “target element or ‘id’ attribute of element.” and second one is “Option” of qrcode like height, width, text etc.
Complete code on GitHub