ColdFusion, CFML, & CFScript Clarification

Guys, a few questions:

When people talk about ColdFusion, do they refer to CFML or CFScript, or both ?

Also, I heard that CFScript is an analog of JavaScript developed for ColdFusion. If so, does it mean I can use CFScript to replace JavaScript ? Otherwise, when should I use CFScript vs CFML ?


Depends on the context. They could be talking about the overall engine/platform. But if someone were to say “the application is written in ColdFusion” then I’d say they meant “both”.

No. While there are some similarities in syntax, they’re totally different. The main difference being CFSCRIPT is executed on the server and JavaScript on the client. So it’s like comparing apples and oranges.

It’s mainly a matter of personal preference. A lot of people prefer cfscript because of it’s sleaker syntax. But before CF9, there were many things you could only do with CFML. CF9 expanded the cfscript support a lot. So if you prefer you can now do almost anything in cfscript.

yes :slight_smile:

cfscript is easier to write and to read, that’s its main advantage


You’re very welcome :slight_smile:

Thanks everyone.

<cfStarlight>Thanks for the effort you put in your response. It’s an A answer !</cfStarlight>