Editing the Javascript code does not automatically update the visual appearance of the block in the editor. In order to do this, you will need to refresh the browser. The following animation shows the process of adding a custom block and updating the  colour and title.

More information on custom blocks can be found within in the Javascript Blocks Editor reference pages