Bloomberg Javascript Fundamentals - ayaohsu/Personal-Resources GitHub Wiki

In Bloomberg

  • Javascript drives Bloomberg's UI framework
  • Javascript Engine: Spider Monkey
  • R+ uses Chrome V8

Javascript Engine

  • a kind of process virtual machine that is designed speicifically to interpret and execute JavaScript code
  • process virtual machine: for example, Wine allows you to run windows application on a Linux machine
  • system virtual machine: for example, Parallels allows you to run Windows on Mac
  • Layout Engines: power a broser by laying out web pages
  • task: takes the source code, breaks it into strings, converts the string into bytecode, and executes it
  • Google’s V8 engine, written in C++, also compiles and executes JavaScript source code, handles memory allocation, and garbage collects leftovers (Ref: https://developer.telerik.com/featured/a-guide-to-javascript-engines-for-idiots/)

Types and literals

  • number, string, boolean, Object, undefined, null
  • null: assignment value. It can be assigned to a variable to represent no value
  • undefined: means a variable has been declared but has not yet been assigned a value

TODO: page 14