Wan t to use a little JAVA Script in Articulate to separate the first letter of a given string (and send only this single letter back again ...)

May 27, 2020

Hello everybody

 

I wan t to create a "password game"

So i ask in Textfield for 4 Words

e.g

  • Hallo
  • Ich
  • Bin
  • Axel

I save all the 4 strings in a variable 

set var A = "Hallo"
set var B = "Ich"
set var C ="Bin"
set var D ="Axel"

now i want the JavaScript (or even if this somehow working direct in Articulate ...) to send back only the first letter of the input

so at the end the result should be

set var A ="H"

set var B="I"

set var C="B" and

set var D="A"

 

how can i do?

cheers

 

Axel

 

 

 

2 Replies

This discussion is closed. You can start a new discussion or contact Articulate Support.