diff --git a/en/macro/tutorial/tutorial_username.md b/en/macro/tutorial/tutorial_username.md index a8084a12b..3ae2a7f6b 100644 --- a/en/macro/tutorial/tutorial_username.md +++ b/en/macro/tutorial/tutorial_username.md @@ -8,9 +8,10 @@ The following example demonstrates how to get the name of a current computer use ### \[JavaScript (JScript)\] +``` WshNetwork = new ActiveXObject( "WScript.Network" ); - alert( "User Name = " + WshNetwork.UserName ); +``` ### \[VBScript\] diff --git a/ja/macro/tutorial/tutorial_username.md b/ja/macro/tutorial/tutorial_username.md index a37c64630..791e1d7d1 100644 --- a/ja/macro/tutorial/tutorial_username.md +++ b/ja/macro/tutorial/tutorial_username.md @@ -8,9 +8,10 @@ ### \[JavaScript (JScript)\] +``` WshNetwork = new ActiveXObject( "WScript.Network" ); - alert( "User Name = " + WshNetwork.UserName ); +``` ### \[VBScript\] diff --git a/zh-cn/macro/tutorial/tutorial_username.md b/zh-cn/macro/tutorial/tutorial_username.md index a40d4adcb..652a80eed 100644 --- a/zh-cn/macro/tutorial/tutorial_username.md +++ b/zh-cn/macro/tutorial/tutorial_username.md @@ -8,9 +8,10 @@ ### \[JavaScript (JScript)\] +``` WshNetwork = new ActiveXObject( "WScript.Network" ); - alert( "User Name = " + WshNetwork.UserName ); +``` ### \[VBScript\] diff --git a/zh-tw/macro/tutorial/tutorial_username.md b/zh-tw/macro/tutorial/tutorial_username.md index daa99dbb3..f3f6d3488 100644 --- a/zh-tw/macro/tutorial/tutorial_username.md +++ b/zh-tw/macro/tutorial/tutorial_username.md @@ -8,9 +8,10 @@ ### \[JavaScript (JScript)\] +``` WshNetwork = new ActiveXObject( "WScript.Network" ); - alert( "User Name = " + WshNetwork.UserName ); +``` ### \[VBScript\]