How to print value of variable in vbscript | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

How to print value of variable in vbscript

15th Aug 2018, 6:31 AM
Karthick
Karthick - avatar
4 Respostas
+ 4
if i am opening website and wanted to print some information, will echo print in website or seperate logs
15th Aug 2018, 8:46 AM
Karthick
Karthick - avatar
+ 3
thanks for your clarifications... but i just want to know shall we use JavaScript commands in VB script as document. write belongs to js
15th Aug 2018, 8:52 AM
Karthick
Karthick - avatar
+ 2
You can just use WScript.Echo (text or variable name to print its content). Example of code: Dim x = "Hello" WScript.Echo x.
15th Aug 2018, 8:33 AM
šŸˆ‚ļøToma
šŸˆ‚ļøToma - avatar
+ 2
Than, for web you may use document.write(variable name) :)
15th Aug 2018, 8:49 AM
šŸˆ‚ļøToma
šŸˆ‚ļøToma - avatar