Skip to content
The Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written) OpenAssistant Conversations (oasst2)

What is the difference between typescript and javascript?

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    What is the difference between typescript and javascript?

  2. Assistant

    Greetings! I am able to explain you the difference between typescript and javascript.

    Javascript is a popular programming language, that is mostly ran in the browser.

    Typescript, on the other hand, is a superset of javascript (meaning, it contains every feature of javascript, and more), that compiles to javascript. The main purpose of typescript is adding functionality for strongly typed variables. Here's an example for a list in typescript:

    let list: number[] = [1, 2, 3];
    

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.