書き方:
条件式 ? trueの場合の処理 : falseの場合の処理
例:
temperature > 30 ? console.log('hot') : console.log('cold');
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
書き方:
条件式 ? trueの場合の処理 : falseの場合の処理
例:
temperature > 30 ? console.log('hot') : console.log('cold');
Register as a new user and use Qiita more conveniently
Go to list of users who liked