Question: what is the difference between sub and function in vbscript?
Answer: Sub-Procedures are similar to functions but there are few differences. Sub-procedures DONOT Return a value while functions may or may not return a value. Sub-procedures Can be called without call keyword. Sub-procedures are always enclosed within Sub and End Sub statements.