include::../rule.adoc[tag=header] === Code examples ==== Noncompliant code example [source,javascript,diff-id=1,diff-type=noncompliant] ---- function JavaScript101() { return ( <>

JavaScript Programming Guide

An introduction to JavaScript programming and its applications.

JavaScript Basics

Understanding the basic concepts in JavaScript programming.

Variables

Explanation of what variables are and how to declare them in JavaScript.

Data Types

// Noncompliant

Overview of the different data types in JavaScript.

// Noncompliant

Understanding how to declare and use functions in JavaScript.

); } ---- ==== Compliant solution [source,javascript,diff-id=1,diff-type=compliant] ---- function JavaScript101() { return ( <>

JavaScript Programming Guide

An introduction to JavaScript programming and its applications.

JavaScript Basics

Understanding the basic concepts in JavaScript programming.

Variables

Explanation of what variables are and how to declare them in JavaScript.

Data Types

Overview of the different data types in JavaScript.

Functions

Understanding how to declare and use functions in JavaScript.

); } ---- include::../rule.adoc[tag=footer]