Link to home
Start Free TrialLog in
Avatar of GizmoBlaster
GizmoBlaster

asked on

Expected Identifier JS Error driving me mad...

How can such a simple code create an error?

<script>
        var clets = "f"
        var terms = "example"
      newurl = "http://www.example.com/test.php?short=" . vclets . "&query=" . terms

</script>

That's driving me mad... I just spent 30 min trying to solve it.

Can't seem to find an onlilne explanation of "expected identifier" that makes sense to me.

I'm sure it's a very simple problem but I'm stuck
ASKER CERTIFIED SOLUTION
Avatar of arioh
arioh
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GizmoBlaster
GizmoBlaster

ASKER

Oh my God, I've been doing too much PHP lately :S

I can't believe I spent 30 minutes on that...

Thanks! Even though that was terribly easy, you deserve your 50 points ;-)
:)
also, you have "clets" in var and "vclets" in newurl