Watch a demo of different values of the lineWidth property.
Or click a specific value to see the result:
const c = document.getElementById('myCanvas'); const ctx = c.getContext('2d'); ctx.strokeStyle='blue'; ctx.lineWidth=3; ctx.strokeRect(20,20,150,75);