Skip to primary content
Skip to secondary content

ferretfarmer

furor loquendi

ferretfarmer

Main menu

  • Home
  • Tutorials
  • About
  • thank me!

Tag Archives: array

arrays (javascript)

Aside

how well do you know your arrays?

figure out what you think each line does, and then check yourself by running them in a console

test = [1,2,3]

test
test.length
test.length = 5
test.length
test

[More programming riddles]
Posted on February 15, 2014 by ferretfarmer | Tagged array, javascript, riddle | Leave a reply

Tags

  • anagram
  • annecdote
  • book review
  • bug
  • code snippet
  • design
  • django
  • javascript
  • math
  • one-liner
  • optimization
  • prime numbers
  • project euler
  • python
  • riddle
  • tutorial
  • twisted
  • udacity challenge
  • websockets
  • wtf

Enter your email address to follow this blog and receive notifications of new posts by email.

Categories

Blog at WordPress.com.
  • Follow Following
    • ferretfarmer
    • Join 32 other followers
    • Already have a WordPress.com account? Log in now.
    • ferretfarmer
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar