DEV Community

Adem Deliaslan
Adem Deliaslan

Posted on

1

Functions in Javascript - 00011

note: please ignore xPos and yPos values all my posts.

var yourNameFunc = function(){
var textX = random(0, 300);
var textY = random(0, 300);
var yourName = "Adem Deliaslan";
fill(255, 0, 0);
textSize(30);
text("Hiiii, " + yourName, textX, textY);
};

yourNameFunc();

output: "Hiiii, Adem Deliaslan"

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more