← All modulesCODE LAB
Scripting for defenders

Your code area

You do not need to be a programmer to work in cyber security, but a little code goes a long way: parsing logs, checking passwords, automating the boring bits. Here you write real JavaScript and run it instantly, right in your browser. Nothing to install, nothing sent anywhere.

Why this matters

As a cyber security analyst, the people who can read and write a bit of code move faster and get hired sooner. You will start with three tiny, real tasks.

1. Your first line of code

Every script starts by making the computer do something. console.log prints a message. Press Run and watch it appear in the Output.

script.js
JavaScript · runs in your browser
or press Ctrl/Cmd + Enter

This is a sandbox: your code runs only in your own browser, and can't touch anything outside this page. Experiment freely.