JavaScript Basics: How to create private & public functions in JavaScript with Module Pattern

Опубликовано: 03 Июнь 2026
на канале: Gen AI Coder - By Ray
895
11

Let’s create a JavaScript Module with private and public methods.

In this video I’m using the Object Literal way of the Module Pattern.

Read it on the Mr Frontend Blog: https://mrfrontend.org/2017/11/javasc...

Enjoy! If you have comments, questions or opinions please share them in the comments! 😇Or you can send a Tweet or DM via Twitter:   / frontendmr  

If you like the content I make, please support me via Patreon: https://buff.ly/2SetRp6

Read more content on my blog https://mrfrontend.org/ or Medium publication   / mr-frontend  

If you want to support my blogs, video's and podcast please go to   / mrfrontend   and choose the amount of money you want to spend. For (almost) every amount there is a thank you package!

Enjoy! If you have comments, questions or opinions please share them in the comments! 😇

Follow us on Blog: http://blog.mrfrontend.org/
Follow us on Medium:   / mr-frontend  
Follow us on twitter:   / frontendmr  
Follow us on Facebook:   / mrfrontendcommunity