> For the complete documentation index, see [llms.txt](https://jmdash.gitbook.io/jmdash-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jmdash.gitbook.io/jmdash-docs/jmbasics/syntax101/calling-functions/built-in-functions.md).

# Built-in Functions

**Built-in** Functions are described as "[the ones that work without #including anything](https://github.com/JMDash-Devs/JMDash/blob/main/.gitignore/Initial%20design%20for%20JM-%20\(or%20JMDash\).txt#L9)"

So they don't need you to `#incd` anything.

## Input/Output Functions

{% code lineNumbers="true" %}

```c
// con.out{} Stands for 'Console.Output'
// Used to output text and/or variables into the console.
// Syntax (spaced): con.out{ << <dataToOutput> };
con.out{<< "Hello World!"}; // Output: Hello World!

// It can also be used for mathematical operations
con.out{<< 1 + 1}; // Output: 2
```

{% endcode %}

{% code lineNumbers="true" %}

```c
// con.read{} Stands for 'Console.Read'
// Used to read user's input and store it into a variable
// Syntax (spaced): con.read{ >> <variableName> };
con.out{<< "Did you eat the dog? "};
str exampleString;
con.read{>> exampleString};
```

{% endcode %}

## Error Handling Functions

{% code lineNumbers="true" %}

```c
// jtry{} Stands for 'JMDash Try'
// Used to check if a statement will return errors
// Syntax (spaced): jtry{ << <possiblyWrongCodeHere> };
jtry{<<
    str myString = MyText; // Code that will trigger errors (missing quotes)
};

// jcatch{} Stands for 'JMDash Catch'
// Used to catch errors that have been "tried" by jtry{}
// Find the error location in the Error Tree (on JMDash Docs)
// Syntax (spaced): jcatch{<errorLocation> >> <possiblyWrongCodeHere>};
jcatch{ SyntaxError/WrongSyntaxOnDataType/WrongSyntaxOnString };

// jcatch{} can also "try" errors itself;
jcatch{ SyntaxError/WrongSyntaxOnDataType/WrongSyntaxOnString >> 
    str myString = MyText; // Code that will trigger errors (missing quotes)
};
```

{% endcode %}

{% code lineNumbers="true" %}

```c
// jthrow{} Stands for 'JMDash Throw'
// Used to throw errors, real simple :))
// Find the error location in the Error Tree (on JMDash Docs)
// Syntax (spaced): jthrow{ >> <errorLocation> };
jthrow{>> SyntaxError/WrongSyntaxOnDataType/WrongSyntaxOnString};
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://jmdash.gitbook.io/jmdash-docs/jmbasics/syntax101/calling-functions/built-in-functions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
