Tech Rumors
3 subscribers
235K photos
239K links
Download Telegram
dev.to

1. Paracetamol.ts💊| #08: Explica este código TypeScript
Explica este código TypeScript

Dificultad: Básico

function welcomePeople(x: string[] | string) {
if (Array.isArray(x)) {
const formatter = new Intl.ListFormat('es', { style: 'long', type: 'conjunction' });
console.log(`Hello ${formatter.format(x)}`);
} else {
console.log("Welcome lone traveler " + x);
}
}

welcomePeople(["Alice", "Philip", "Anet"])
welcomePeople("Alice")

A. "Hello Alice, Philip y Anet", "Welcome lone traveler Alice"
B. "Hello undefined, undefined y undefined", "Welcom…
#typescript #webdev #spanish #programming

2. Monthly Challenge #4: Valentine's Day 💘
What better way to celebrate Valentine's Day than by sharing a poem with your friends and family? In this challenge, you will create a poem on a web page using HTML. 💌

Requirements:

Use a combination of at least five common HTML elements, such as headings, paragraphs, lists, and text formatting.
The poem can take on any form you like! You can freestyle with as many lines as your heart desires, but here are some suggestions for common poem types:

Sonnet (14 lines)
Haiku (3 lines; 5 syllable, 3…
#challenge #html #beginners #codenewbie

3. Securely store environment variables with GitHub Codespaces
As a developer advocate, I make a lot of demo projects to illustrate my talks or content. Also, as a chaotic person, I don’t do the best job at securely storing my environment variables during my demos. On more than one occasion, I’ve revealed my environment variables during a stream or a conference talk. Fortunately, developer friends like Mayank and Nick introduced me to Cloak, a VS Code extension that hides the values of your environment variables if you accidentally share your screen.

I re…
#github #tutorial #cloud #githubcodespaces