The code I wrote is not reflected in the sample display. How can I resolve it?
The current screen looks like this.
Answer # 1
Start your browser development tool (F12 for Chrome)
Check the "Console" tab.
An error has occurred.
The document.write () that is not recommended to use is used, the language attribute that is deprecated is specified in the script tag, and the article or book you are referring to may be quite old. think.
Switch to a new one at this time.
Answer # 2
There is noor deprecated
The reason why it does n’t work is
v = (sample == 10)? "Sample is 10";"Sample is not 10";
:, and the last
;is full-width. It works.
v = (sample == 10)? "Sample is 10": "Sample is not 10";