- Published at
Hello world!
An article exploring the possibilities of markdown editor formatting. Welcome!
- Authors
-
-
- Name
- Piotr Duda
- https://x.com/duqens
- Senior Software Engineer at AppDynamics @ Cisco
-
Table of Contents
Welcome to my first article!
Today, I am testing few things with the blog.
Inline Highlighting
Let’s start with an example of inline highlighting: const message = "Hello, ChatGPT!"
.
Code Blocks
Now, let’s add some JavaScript and Python code that uses ChatGPT in a simple web application.
// Importing ChatGPT for JavaScript
import ChatGPT from 'chatgpt';
// Creating an instance of ChatGPT
const chatbot = new ChatGPT();
// Example of usage in JavaScript
const userInput = getUserInput();
const response = chatbot.generateResponse(userInput);
displayResponse(response);
# Function for generating responses using ChatGPT in Python
def generate_response(user_input):
chatbot = ChatGPT()
response = chatbot.generate_response(user_input)
return response
# Example of usage in Python
user_input = get_user_input()
response = generate_response(user_input)
display_response(response)
This combined Markdown file includes examples of both JavaScript and Python code using ChatGPT.