I am trying to insert image values into the html to replace the src according to the name so if the name for the templateName = Javascript I can make the src value = something like say (<http://www.w3devcampus.com/wp-content/uploads/logoAndOther/logo_JavaScript.png>) and do that for other categories as well using an if/else statement in javascript.

my script look like this but it has a few errors with the syntax 

```
var imageChoosernator = function () {
        if (#templateName == "Javascript")
        {
            img = <img src="htp://www.w3devcampus.com/wp-content/uploads/logoAndOther/logo_JavaScript.png">;
        }
 `   }

```

Can someone guide me toward the proper solution?