title: Convert VBScript code to javascript (i.e. JScript) code
body: <p>how do we convert following vbscript to javascript?</p>
  
  <pre><code>&lt;script type="text/vbscript"&gt;
  
    Function SayHello()
      MsgBox "Hello"
  
  HKEY_LOCAL_MACHINE = "&amp;H80000002"
  uninstallRegKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"
  stdRegPro = "winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\default:StdRegProv"
  
  Set objReg=GetObject(stdRegPro)
  
  objReg.EnumKey HKEY_LOCAL_MACHINE, uninstallRegKey, arrSubKeys
  MsgBox arrSubKeys
  
    End Function
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Any help appreciated.</p>
  
  <p>Thanks,
  Lok.</p>