# 代入. 文字列中の式の評価

# Bash

s="I am $(expr $age - 2) years old"

# PowerShell

let s = `His age was $(age - 3).`;

# Ruby

str1 = "I am #{age - 2} years old."

# Swift

let str = "His age was \(age - 3)."

# TypeScript

let s = `His age was ${age - 3}`;

[ 📩 ご意見 ]