Variable not defined in js block

What's problem you are encountering?
When I input a variable into a js function and run the block the block says the variable is not defined. I am doing this for the snapinator project
Post a project example, link, or screenshot:
untitled script pic (13)
Screen Shot 2020-12-05 at 4.46.31 pm

js code:

var msg = new SpeechSynthesisUtterance();
msg.volume = 1;
msg.rate = 1;
msg.pitch = 2;
msg.text = ti;
msg.lang = 'english';
window.speechSynthesis.speak(msg);

or am I doing something wrong?

image

ok, thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.