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

Which language? Which error? Which code?

Jump to Post

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

Jump to Post

All 5 Replies

Which language? Which error? Which code?

Sorry Javascript. I'm printing a variable;

print(<VarableName>)

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.