I'm attempting to print a variable print(<variableName>) but I get an error it's not a; function ?
I searched online and all I could find is that; it's not a function so how can I fix this; I don't know another command.

Recommended Answers

All 5 Replies

Which language? Which error? Which code?

Sorry Javascript. I'm printing a variable;


afaik javascript has no print function.
There is window.alert and document.write or console.log

My mistake, thanks for helping :)

Glad to help. :) Please mark this thread as solved, to help others.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.