DEV Community

mmvergara
mmvergara

Posted on • Edited on

1 1

Javascript Tagalog - Function Declaration

Ano ngaba ang Function Declaration sa Javascript?

  • Ang function declaration ay isang paraan ng pag dedefine ng function.
  • Ang mga Function Declaration ay **Hoisted **so pwede mo sila gamitin kahit nasa pinakababa pa sila ng code mo. (unlike function expression)

Function Declaration Javascript Tagalog Filipino Philippines

Unlike Function Expression di sila Hoisted so di mo sila ma-access before sila madefine.

Function Declaration Javascript Tagalog Filipino Philippines


Note:
Sa Javascript pwede mong i pass ang mga functions sa variables, pwede karin mag return ng function from a function, pwede moring i pass mga function as an arguments sa mga functions at iba pa.
In short tinatrato ng Javascript ang mga Functions as Variables lang
That's another topic nalang, kasi medyo advance pero eto mga documentation kung curious kayo
MDN Documentation - First Class Functions


More tagalog Javascript Learning Resources:
https://javascript-methods-in-tagalog.vercel.app/

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay