TransWikia.com

SSJS is not printing variable value in cloudpage

Salesforce Asked on October 4, 2021

I am trying to print the value of a SSJS variable in cloud page so that i can use it in my HTML to display over cloud page . but page keeps loading without any output.

<body>
 <script runat="server">
      Platform.Load("core", "1.1.1");
var array = [];
for (var i = 1; i < 5; i++) {
    write( i + "<br>");
}
</script>
  <a> Click here </a>
</body>

One Answer

I got my mistake . I was using write instead of Write as pointed out by - shd.lux

Correct answer by RKNauhwar on October 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP