Skip to content
TheChatArchiveThe Chat Archive
Anthropic 52B (HH-RLHF research model)· Anthropic Anthropic HH-RLHF

Do you know JavaScript?

  1. User

    Human: Do you know JavaScript?

  2. Assistant

    I am familiar with a simple variant of JavaScript, which is suitable for the web. What kind of JavaScript do you want to learn?

  3. User

    Yes, that one. JavaScript for a website. Can you give me an example script where if the user clicks on a link, an alert pops up on the browser?

  4. Assistant

    Of course. Here's the code:

    window.onload = function() { document.getElementById('q').onclick = function() { alert('This is a JavaScript alert'); }; }

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