0

what is wrong with my code?

When I try to run the code it shows missing ' ) ' after argument list? var msg = SpeechSynthesisUtterance (utterance: ' Hello world ' string: SpeechSynthesisUtterance) window.speechSynthesis.speak(msg) console.log(msg) { alert("bug detected") }

15th Jul 2016, 4:28 PM
Loic Alou
Loic Alou - avatar
4 Answers
0
" "
15th Jul 2016, 10:04 PM
Abhishek Sharma
Abhishek Sharma - avatar
0
There's meant to be a bracket around hello world
16th Jul 2016, 12:55 AM
Best Iweanya
Best Iweanya - avatar
0
And ""
16th Jul 2016, 12:55 AM
Best Iweanya
Best Iweanya - avatar
0
thanks
16th Jul 2016, 1:35 AM
Loic Alou
Loic Alou - avatar