Home



title: "Reworded MDX Example" description: "An example MDX document that has been reworded."

Reworded MDX Example

Let's explore a fundamental code snippet.

function greet(name) {
 return `Hello, ${name}!`;
}


console.log(greet("World"));

The code presented above showcases a simple JavaScript function.

Here's an image:

For more information, see the MDX documentation.

Finally, consider this alternative phrasing.

def greet(name):
 return f"Hello, {name}!"


print(greet("World"))

The preceding code block illustrates a Python equivalent.

```mdx
---
title: "MDX Example, Rephrased"
description: "A rephrased MDX document as an illustration."
---
 

 # MDX Example, Rephrased
 

 Consider the following basic piece of code.
 

 ```javascript
 function greet(name) {
  return `Hello, ${name}!`;
 }
 

 console.log(greet("World"));

The JavaScript function displayed above provides a straightforward example.

Here is a picture:

Consult the MDX documentation for further details.

As a final point, take into account this different way of saying the same thing.

def greet(name):
 return f"Hello, {name}!"


print(greet("World"))

The Python version is shown in the code block immediately before this sentence.

Appearances