javascript cahnge colour of strokerect

JavaScript
const context = canvas.getContext('2d');

context.strokeStyle = 'blue';
context.strokeRect(100, 100, 50, 50);
Source

Also in JavaScript: