Variable Declaration in VB Script - TestingQ.com

-->Exclusive Portal for Testing Jobs

Variable Declaration in VB Script

There are two types we can declare a variable.
Explicit declaration: 
Explicit Declaration is used to avoid the unnecessary confusion created while typing and also to avoid loading the memory with variables because of errors we can use Explicit Declaration. In order to use explicit declaration type we need to declare the variables before the script begins or it should be in the starting of the script.

Ex: Dim x
x  = "TestingQ.com"

Implicit declaration: 
using the variable without declaration.
Ex: x = "TestingQ.com"

Always Explicit declaration is recommended. if we don't use we might forget which variable you have used and you may use same variable to store some other value. it will impact on your output.



To receive daily posted JOBS & Interview Questions
Just enter your email address below and click 'Submit'
Enter your email address:

Make sure to activate your subscription by clicking on the activation link sent to your email