Jan. 18, 2024, 1:51 p.m. | Lars Grammel

DEV Community dev.to

Have you ever wondered how to turn a simple text prompt into structured, typed information immediately usable in your JavaScript applications?


In this blog post, we'll create a JavaScript function that does just that. Our function will take a country as input and output a curated list of cities perfect for a weekend getaway in that country.


For this task, we'll use several tools:


ai applications beginners blog cities country function generate information javascript list ollama programming prompt simple text will

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US