If you read through the Quick Start Guide, included with your new ZX Spectrum Next, you've already had a brief introduction of the screen, keys, editing and NextBASIC in general which means you're ready to start programming your computer! If not, you can either go along and you'll figure things you've missed along the way – or – go back and have a quick read of the A (Next)BASIC Primer section! Either way, you need to reset your ZX Spectrum Next, go to the Startup Menu and select NextBASIC. Press ENTER and we're ready to start!
Type in the following two lines:
20 PRINT a
10 LET a=10
so that the screen looks like this:

10 LET a=10
20 PRINT a
NextBASIC
Fig. 1 – Entering program lines in NextBASIC
First of all congratulations! You just wrote a computer program which stores a number in the computer's memory, later recalls it and displays it. Let's see for a moment exactly how you've done that:
Let's enhance our program a bit more. Type:
15 b=15
and press ENTER. Line 15 gets inserted between lines 10 and 20 and the screen is reformatted. If the lines' numbers had only an interval of 1; if for example they had been numbered 1 and 2 instead of 10 and 20 it would have been impossible to insert another line in-between. Line numbers must be whole numbers between 1 and 9999, and that is why,
ZX Spectrum Next User Manual, 3rd Edition (ISBN 978-1-5272-5496-1), written and illustrated by Phoebus R. Dokos. Copyright © 2020-2024 Phoebus Dokos / SpecNext Ltd. Licensed under CC BY-NC-SA 4.0. This is a transcription and can contain errors; check any doubt against the printed page.