Home>

The code I wrote is not reflected in the sample display. How can I resolve it?

Code


Conditional expression



The current screen looks like this.
] (37f1ca2e977dc6afeba5d83c88a34042.png)

  • 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 deprecateddocument.write ()or


    Part of.
    The first;is:, and the last;is full-width. It works.

    v = (sample == 10)? "Sample is 10": "Sample is not 10";

Related articles

Trends