2024年7月6日解決済み

const score = (prompt('Score?')); としてもよいですか?

ユーザー

const score = Number(prompt('Score?'));
の、Number を除いて、
const score = (prompt('Score?'));
で同じことをしても同じ結果だったのですが、これで何か問題はありますでしょうか?

スタッフ

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?