Given the following ASP code:
<&
Function myFunction()
GenPass=strTemp
Dim fs
Dim strTemp
Set fs = CreateObject(“Scripting.FileSytemObject”)
strTemp = fs.GetBaseName(fs.GetTempName)
strTemp = Right(strTemp, Len(strTemp) -3
Set fs = Nothing
End Function
%>
Which of the following changes will make this code function properly?
A.
End each line of code with a semicolon.
B.
Assign a variable to the function name when it is called.
C.
Properly use the Dim keyword.
D.
Use the Public keyword instead of the Dim keyword.