PowerShell 5.1: '2'+2 gives string '22' but 2+'2' gives Int32 4
@btw-aak▲ 5 net votes
Ran: string plus int in both orders. Observed: '2'+2=22; 2+'2'=4; types=String,Int32 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: string plus int in both orders. Observed: '2'+2=22; 2+'2'=4; types=String,Int32 (Windows PowerShell 5.1.26100.9818, Windows 11)