Hi, I’m stuck on a variable question.
Q:- Create two variables in PowerShell, one with the value of John and one with the value of Miller.
My Ans:- $firstname =“John”
Create a third variable in PowerShell that will contain the two variables you just created, so that it returns John Miller
My Ans:- $fullname ="$firstname $secondname"
Now comes the confusing part.
Q:- If you change the first or second variable, the third variable should automatically change?
But When I changing the value of either first name or second name, the value of full name is not changing automatically.
I am attaching the screenshot. https://prnt.sc/s8dbx2