• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Functions, and js limitations question

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are there limitations to javascript, like memory restrictions and such. whats can't javascript do, i know 3d. but can you build a 2d game engine and stuff. i'm sure if coupled with html5. but i'd rather stick with mainstream standards..
also learning js, on code academy, they have..
'var nameOfFuct = function(x){};'

but i saw elsewhere just 'function nameOfFuct(x){}'
now this is mostlikely wrong, but first one, casts a var into a function, or perhaps puts whatever is returned from function into the var.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jason Bostwick wrote:Are there limitations to javascript, like memory restrictions and such.


Of course it does. Everything does. No system has unlimited memory,

i'm sure if coupled with html5. but i'd rather stick with mainstream standards..


HTML5 is a mainstream standard.

also learning js, on code academy, they have..
'var nameOfFuct = function(x){};'

but i saw elsewhere just 'function nameOfFuct(x){}'


Both are correct but subtly different.

The first creates an anonymous function and stores a reference to it in the var. The 2nd creates a named function.

now this is mostlikely wrong, but first one, casts a var into a function, or perhaps puts whatever is returned from function into the var.


No. See my explanation above.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic