let x = 10;
function display() {
console.log("Displaying value of x:", x);
}
for (let i = 0; i < 5; i++) {
console.log("Loop iteration:", i);
display();
}
const y = "Hello World";
function greet() {
console.log("Greeting message:", y);
}
greet();
let z = [1, 2, 3];
if (z.length > 0) {
console.log("Array is not empty. Length:", z.length);
}
let sum = 0;
z.forEach(item => {
sum += item;
console.log("Adding item to sum:", item, "Current sum:", sum);
});
import "./module";
const data = fetchData();
console.log("Fetched data:", data);
render(data);
function processData(input) {
console.log("Processing input:", input);
return input.map(item => {
let processedItem = item.toUpperCase();
console.log("Processed item:", processedItem);
return processedItem;
});
}
const result = processData(data);
console.log("Final result:", result);
export default App;

Welcome to zavier.dev

Your hub for tech and coding enthusiasts. Explore our projects and learn more about cutting-edge technologies.