[lang-ref] String interpolation (expression) ( powershell )
It 'should perform string interpolation with expression' {
# "$(...)"
$age = 20
$s = "I am $($age - 2) years old."
$s | Should -Be 'I am 18 years old.'
}
It 'should perform string interpolation with expression' {
# "$(...)"
$age = 20
$s = "I am $($age - 2) years old."
$s | Should -Be 'I am 18 years old.'
}