The title made me expect that the QR code would be generated with just 7 lines of vanilla javascript code. But it seems that the integration with slack is meant with the 7 lines of code.
So, "Integrate a QR code with slack in 7 lines of javascript" would seem more apt as a title.