Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
nameDouglas Cockfordは、「 aと。の2つのプロパティを持つ例外オブジェクトでなければならない」と主張していますmessage。
name
message
これは彼だけが再び福鼎をしているのですか、それとも何ですか?
はい、任意のオブジェクトをスローできます。それを試してみてください:
throw 5;