Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • assignment
  • variable

JavaScript - Assign variable

Assign expression to variable.

0
297
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

Assign to variable

Variable is scoped per function.

var {{name}} = {{expression}};
javascript

Notes

last update: June 16, 2015

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Increment variable by one

Other language

  • Javascript ES6

Random task

  • List all git stash entries
  • Block comment
  • If else
  • Remove local branch
  • Do loop while a condition is true
  • Blog
  • About
  • License