前提
codesandboxで勉強しています。
発生している問題・エラーメッセージ
名前はhogeと表示させたいです。
エラーメッセージ 'myPlofile' is assigned a value but never used. (no-unused-vars) eslint Unexpected template string expression. (no-template-curly-in-string) eslint
該当のソースコード
const myPlofile = { name: "hoge", age: 20, }; const message1 = '名前は${myPlofile.name}'; console.log(message1);

回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
また依頼した内容が修正された場合は、修正依頼を取り消すようにしましょう。
2022/12/08 14:54