Back to Blog

Can You Guess This Programming Language? ๐Ÿค” #shorts #coding #programming #2

Sandy LaneSandy Lane
โ€ข

Video: Can You Guess This Programming Language? ๐Ÿค” #shorts #coding #programming #2 by Taught by Celeste AI - AI Coding Coach

Take the quiz on the full lesson page
Test what you've read ยท interactive walkthrough
โ†’

Can You Guess This Programming Language? ๐Ÿค”

Programming languages often have distinctive syntax that can be recognized by experienced developers. This challenge invites you to identify a language based on a short code snippet, helping sharpen your recognition skills and deepen your familiarity with common coding styles.

Code

function greet(name) {
  console.log("Hello, " + name + "!");
}

greet("World");  // Output: Hello, World!

Key Points

  • The code defines a simple function using the keyword function, common in JavaScript.
  • It uses console.log to print output to the console, a typical JavaScript method.
  • String concatenation with the + operator is used to combine text and variables.
  • Calling the function with an argument demonstrates basic function invocation syntax.
  • Recognizing such syntax helps quickly identify JavaScript among other languages.
Ready? Take the quiz on the full lesson page โ†’
Test what you've learned. Watch the lesson and try the interactive quiz on the same page.
โ†’