Questions Concepts
GitHub icon


Assignment - language feature

< >
Example from JavaScript, TypeScript:
var name = "John"
Example from Python, Elixir, Cython, Speedie:
name = "John"
Example from PHP:
$name = "John"
Example from Ruby:
pldb = 80766866
Example from C#:
int pldb = 80766866;
Example from Swift:
let label = UILabel()
Example from Kotlin:
table = HashMap()
Example from Bash:
Example from Pug:
- var title = "On Dogs: Man's Best Friend"; h1= title
Example from Makefile:
objects = program.o foo.o utils.o
Example from Ini:
[branch "master"] remote = origin merge = refs/heads/master
Example from C3:
a = b;
Example from Ion:
// A subset of symbols called identifiers can be denoted in text without single-quotes.
Example from Jule:
let mut x = 0 x = 20
Example from bog:
let pldb = "pldb"
Example from Cyber:
count = 0
Example from BALGOL:

Languages with Assignment include JavaScript, Python, C, C++, PHP, Ruby, C#, Fortran, R, Go, Swift, Ada, Kotlin, PowerShell, Pascal, TypeScript, Lua, Bash, Objective-C, Elixir, Eiffel, Smalltalk, Nim, Pug, ML, Oberon, Simula, AMPL, BCPL, Dylan, Algol, Makefile, PL/I, Io, Ini, Cython, C3, AutoHotkey, Speedie, Seed7, Oberon-2, Ion, janet, Reia, PL/M, progsbase, Jule, CPL, Modula, C2, Mary, bog, Cyber, BALGOL, Superplan, Tick C, ADLIB, Extended Pascal, PL/I-FORMAC

Languages without Assignment include hecl

This question asks: Does the language allow assigning values to variables?

Read more about Assignment on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Traffic Traffic Today Day 305 Logout