Skip to content

cotrVarString

Creates a string variable

Aliases:

  • cotrVarString
  • string
  • stringVariable
  • variableString
  • text
  • createString
  • createText

cpp

std::string myString = value;

csharp

string myString = 'Your string here';

dart

String myString = 'Your string here';

go

var variableName string = variableValue

haskell

let myString = "Your string here"

java

String myString = 'Your string here';

javascript

let myString = "Your string here";

javascriptreact

let myString = "Your string here";

kotlin

var myString = "myValue"

perl

mymyString = "Your string here";

php

myString = 'Your string here';

powershell

Terminal window
myString = "Your string here"

python

myString = ''

r

my_string <- 'Your string here'

ruby

my_string = 'Your string here'

rust

let myStr = String::from("myString");

scala

val myString = "Your string here"

shellscript

Terminal window
# Assign a string value:
myString='myValue'

swift

var myString = 'Your string here';

typescript

let myString: string = 'myValue';

typescriptreact

let myString: string = 'myValue';