The snippet inserts the value of your attribute as plain text, so your old example would translate to:
General Advice;
alert("Current value " + General Advice);
Which isn’t valid javascript. I’m honestly kinda surprised if you ever got the desired result with the current snippet.
I can’t test this right now, but I’m pretty sure the following should work:
alert("Current value: ${currentType}");