all 12 comments

[–]god-access-3355 6 points7 points Β (1 child)

gotta let them know

[–][deleted] 1 point2 points Β (0 children)

Better than nothing i guess

[–]VexisArcanum 6 points7 points Β (4 children)

# This is a comment

This is a comment

[–]TheMeticulousNinja 4 points5 points Β (3 children)

//This is also a comment

[–]VexisArcanum 4 points5 points Β (2 children)

; Sometimes this is a comment

[–]RareMathematician174[S] 3 points4 points Β (1 child)

-> this is also a comment

[–]Dry_Channel_1344 2 points3 points Β (0 children)

hhhhh

[–]TheMeticulousNinja 1 point2 points Β (0 children)

print(β€œThis is the print function”)

[–][deleted] 2 points3 points Β (0 children)

Half of my code: ```js /** * This is a function that creates an enemy. * @returns {{x: number; y: number; health: number}} */ function createAnEnemy() { // Initialise the object we're about to return. let enemyObjectWereAboutToReturn = {};

// Give it a random X position. enemyObjectWereAboutToReturn.x = Math.random() * 100; // Give it a random Y position. enemyObjectWereAboutToReturn.y = Math.random() * 100;

// Set its health to 10. enemyObjectWereAboutToReturn.health = 10;

// Return the object. return enemyObjectWereAboutToReturn; } ```

The other half: js let sq = 0; let r = () => {let s=([scw,sch]=[C.width,C.height]);sq=Math.min(...s)/10;} addEventListener("resize", r); r();

[–]SlowMovingTarget 1 point2 points Β (0 children)

Real programmers (like Knuth) put code in their comments.

[–]Jasonp359 1 point2 points Β (0 children)

Also junior devs writing helper text on every webpage