HyperMath

Quotes

Quotes

Previous topic Next topic No expanding text in this topic  

Quotes

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Strings can be defined using single quotes or double quotes.

> print("hello")

hello

 

> print('hello')

hello

You can enclose one type of quote inside another.  For example:

> print('hello "HyperMath user"')  //double quotes inside single quotes

hello "HyperMath user"

 

> print("hello `HyperMath user`")  //single quotes inside double quotes

hello ’HyperMath user’

 

> print("hello `HyperMath user!!`") //Special characters inside the single quotes

hello ’HyperMath user!!’

 

> print(‘hello "HyperMath user!!"’) //Special characters inside the double quotes

hello "HyperMath user!!"

 

> print(‘hello "HyperMath user!!" & "HyperWorks User"’)

hello "HyperMath user!!" & "HyperWorks User"