Net Docs Samples

Welcome to the Net Docs Samples section. This page provides example code and documentation for the Net Docs library.

Let's start with a simple example:

Simple Example: A Basic Function

This example demonstrates a basic function that takes two numbers and returns their sum.

Function Name: sum()

Description: This function calculates the sum of two numbers.

Code:

Another Example: A Method

Here's a method that takes a list of numbers and returns the average.

Method Name: average()

Description: This method calculates the average of a list of numbers.

Code:

Click the button to run the code!