Question: what is the difference between function and procedure in vbscript?
Answer: The Differences include: Sub Procedure starts and ends with using Sub and End Sub respectively while Function Procedure starts and ends with Function and End Function respectively. The most important difference is Sub Procedure never returns a value while the Function Procedure may return a value (as shown above).