Click in order · JavaScript and TypeScript course · Module 1: JavaScript Basics

JavaScript Program Structure

Arrange the program: comment, constant, function definition and its call:

Items to click

  • console.log('DNA sequencing started');
  • // Program initialization
  • }
  • const labName = 'InGen Genetics';
  • startSequencing();
  • function startSequencing() {
Show the answer

Correct order:

  1. // Program initialization
  2. const labName = 'InGen Genetics';
  3. function startSequencing() {
  4. console.log('DNA sequencing started');
  5. }
  6. startSequencing();