Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Part in JS that every dev should know

Featured Replies

Javascript is a huge and awesome (and complicated, of cause) programing language! But nobody can know all part of js very well. I need to understand for myself what part of vanilla js every front-end developer and js programmer should know for getting a decent salary?

 

scope

closure

loop

promises

http

Rest

websockets

angular

node.js

 

When i started go deeper in closure i understood how much awesome affects i can make with vanilla js. If i miss something? Please add the missing part to this list. I will be very greatful if someone can point me to the most used task in javascript that front-end devs everyday working with.

 

Thank you in advance!

Depends what you think is a decent salary.

 

I don't think I am anywhere near being good enough to get employed purely as a JavaScript engineer, you need to have quite literally mastered the language. In my case I feel as though I've a long way to go. Based on your posts I feel you also have some distance to go. JavaScript is far more powerful and complex than it is given credit for. There's a reason good JavaScript engineers are earning a fortune - they are in high demand and it's not easy to get to that level of expertise.

 

The list is quite disjointed, some of the stuff in there are frameworks, others are complex things, some like http isn't JavaScript. Loops - I think even beginners should know how loops work.

 

Heres a list of the slightly more advanced things you should know in JavaScript (Language itself w/o frameworks)

 

  • Functions,
    • Higher order functions (Lambdas)
    • Scope (function scope), what is hoisting, Closure
    • Callbacks + promises
    • Recursion
    • Module pattern
  • Objects
    • 'this' binding you should always know what is the context of 'this' in all situations
    • .call() & .apply() what is the difference and why would you use it
    • new vs Object.create
    • prototypes (a lot to learn here)
  • General stuff
    • Type coorecion and difference between == and ===
    • Setting default values with ||
    • The guard operator && used as a conditional
    • Arrays and all their methods

I'm really only scratching the surface here and this is what I could think of from the top of my head. My advice is to keep studying until you until you have a very deep understanding. We're talking years here. The barrier to entry for a JS specialist is much higher than say a front-end developer.

 

EDIT: Some of the stuff I put is beyond what an entry level front-end dev should know. Focus on getting down the fundamentals. CodeSchool covers all the Fundamentals you need to know. Don't try to learn more complex things until you have the basics down. You will also need a a strong understanding of jQuery. Some positions ask for Angular/Backbone/someotherframework knowledge, but I don't really feel it's necessary for entry-level FED. For a JavaScript engineer you need to know a lot more than is mentioned in this post.

Edited by rbrtsmith

  • Author

Thank you a lot for advanced answer! I search throw openings and see that everyone want dev with angular js knowledge. And libraries like closure js etc. So lots of work there :) While i working and create site i take time to learn js cause my final goal in the future is to develop apps on js. I see the future for devs in this field. It's the most interesting area, i think.

Edited by fleur

  • Author

In our opening OOP in JS is also the most asked question. Its the most "dark" thing for me.)

About salary. Middle salary for front-end dev is 80 000 rub. 1rub = 54.03$ and 85.99 euro. Sometimes (rarely)

100 000. JS engineer starts from 100 000 rub. Middle salary - 120 000 rub.

Edited by fleur

 

The fact that you can create a list like that off the top of your head to me demonstrates you're ahead of certainly the vast majority of web devs when it comes to JS. You might not be a total expert just yet, but you're way ahead of most, and I bet you'd do pretty well as a stand alone JS dev in all honesty.

 

I'm currently working in JS again, doing some test driven reactjs, and actually loving it. It's crazy to me how a language that in so many ways is a shambles and was disregarded by the vast majority of the industry for most of its life can turn out to be so pleasant to work in. The environment we have in work, with all the gruntjs goodness, the automatic linting and jscs checks and of course the automatic and rapid feedback from the unit tests (written in jasmine + running through karma via grunt) really makes for a nice experience. I even did something today I wouldn't have been able to in PHP involving callback functions (you can do callback functions in php, but it isn't quite as neat as what you can do in JS).

 

The tdd process with jasmine and karma is really amazing - it's the most pleasing tdd workflow I know of, including all the php tools I've used down the years.

 

I still don't agree with Eric Elliott about classes though ;-)

 

Oh, and because I see I'm in danger of derailing another thread - I'd say Robert gave some really good advice above. I'd also recommend learning tdd (test driven development) and jasmine and karmajs.

 

Attempting this course was quite humbling. I think I got about 15 minutes in before I was lost. It's my mission now to understand what the heck they are talking about :phttps://frontendmasters.com/courses/functional-javascript/

 

 

I really would like a good place to learn TDD from. Frontend masters told me the're releasing a REST course in the next month or two that will cover TDD as it stands there isn't a lot online and those Eric Elliot classes are not ready yet.

 

By the way you might not agree with Eric Elliot about classes, but I'm reading through his book and it's excellent. allthough at this stage is a little too advanced for me to understand all the concepts. It could be a good read for you: http://shop.oreilly.com/product/0636920033141.do

Edited by rbrtsmith

 

In our opening OOP in JS is also the most asked question. Its the most "dark" thing for me.)

About salary. Middle salary for front-end dev is 80 000 rub. 1rub = 54.03$ and 85.99 euro. Sometimes (rarely)

100 000. JS engineer starts from 100 000 rub. Middle salary - 120 000 rub.

 

 

Those numbers don't really mean much to me, you'd need to convert to $ or £ per year. But yes it's clear a JS developer earns more, it's much more specialized. and the barrier to entry far higher. I imagine most JS Devs were previously front-end or backend devs. Also a JS dev will likely be writing JS in both the front end and backend.

  • Author

I agree. I see that js devs always asked for angular.js and node.js knowledge (+ all things listed above). Just found good source about closure for starting

Edited by fleur

I agree. I see that js devs always asked for angular.js and node.js knowledge (+ all things listed above). Just found good source about closure for starting

 

But we're quite a long way off working as a JS dev. There's not a whole lot of point in learning Angular and Node when we don't fully understand JS yet. Jquery we can get away with the basics, maybe Angular too, but Node requires that you at least understand asynchronous programming to get much of a benefit from it.

 

Btw I don't fully understand everything that I listed in my first post. Like closure for example I know that a closure is when an inner function has access to it's outer functions scope when executing outside of that scope. But knowing how to and when to use them is something I am still learning. So far It's only for module creation and events but I've seen them used everywhere. Putting the theory into practice takes a lot of time.

 

If you have not done all 4 JavaScript courses on CodeSchool I strongly advise you stop all other forms of JS study and do them, and all the code challenges. They will test your knowledge of closure, hoisting, objects and so on. At least to the level you'd need to get a job as a junior FED.

Edited by rbrtsmith

I'm reading this as a JavaScript beginner, and haven't got a clue about anything listed!

 

The CodeSchool courses I mentioned break you in very gently, Roadtrip one is for an absolute beginner, RT3 is a good introduction to some of the stuff we are talking about here.

  • Author

 

But we're quite a long way off working as a JS dev. There's not a whole lot of point in learning Angular and Node when we don't fully understand JS yet. Jquery we can get away with the basics, maybe Angular too, but Node requires that you at least understand asynchronous programming to get much of a benefit from it.

 

Btw I don't fully understand everything that I listed in my first post. Like closure for example I know that a closure is when an inner function has access to it's outer functions scope when executing outside of that scope. But knowing how to and when to use them is something I am still learning. So far It's only for module creation and events but I've seen them used everywhere. Putting the theory into practice takes a lot of time.

 

If you have not done all 4 JavaScript courses on CodeSchool I strongly advise you stop all other forms of JS study and do them, and all the code challenges. They will test your knowledge of closure, hoisting, objects and so on. At least to the level you'd need to get a job as a junior FED.

 

Per fortuna i am here, on this forum. I am really greatful for your list. I was strongly needed this. Yes i understand about theory of closure. I see the great ability of closure in design patterns. I saw lots of examples in internet. Add to this Math.random

and regexp and that can help to create nice effect in design. Maybe someday i start think not only about design area and cool effect but also about app structure. Since that time i will start to go to front-end. ))

 

With regards to the TDD stuff - I mentioned recently I'm planning to have a go at a TDD screencast. You got any ideas for a kind of app/feature you'd like to see test driven? Just asking out of interest, as I could see what I could do.

 

I've recently been test driving a new football scores component, and it just reinforces my belief that it's the best possible way to build software. We've gone from having almost nothing to show after a few days work (because we were getting the test environment off the ground) to having it nearly finished a couple of days later, and this is something that was specced out to take 3 weeks. It's also common for me now to pass stuff onto QA and have it all come back without any bugs, but I'm sure I've told you this before.

 

I'd be interested to know if you can think of something you'd like to see test driven. If not I'll take my time and try to think of something myself. It'd be cool to get feedback from you though, especially if it's new to you, because it'll help me hopefully explain things better.

 

I need to do the screencast in order to stand a chance of getting promoted at work (it's one of my targets now), so this time I'll be forced to do it one way or another.

 

I'll try to take a look at that front end masters course. I don't consider myself to be a master of JS either btw. I just have such trust in the TDD process that I feel like I can build virtually anything and it'll pop out the other end well written...

 

Cheers for the book recommendation. I'm currently reading through a couple of other tech books, but I'll put it on my list and will get it eventually. I'm trying to be stricter with books at the moment as I keep buying them and not reading them...

 

I don't actually have an app in mind, Something that is simple and demonstrates how the TDD workflow works, how you set everything up for this, how to start writing tests. The football one would be good if you think it is simple enough to get the concepts across.

There's a course coming up on Frontend Masters called 'JavaScript: From Basics To Building' with Kyle Simpson. I watched the live stream and it's really in-depth, it's a 2 day workshop that covers a hell of a lot of topics, and is suitable for beginners. It's interesting to see FEM adding introductory courses. It looks like they have tonnes of JS stuff planned for this year.

  • Author

Jack, thank you a lot! I see that Information is very useful to learn. I listened lots of good words about Kyle.

There's a course coming up on Frontend Masters called 'JavaScript: From Basics To Building' with Kyle Simpson. I watched the live stream and it's really in-depth, it's a 2 day workshop that covers a hell of a lot of topics, and is suitable for beginners. It's interesting to see FEM adding introductory courses. It looks like they have tonnes of JS stuff planned for this year.

 

If Kyle Simpson's advanced JavaScript is anything to go by this will be excellent. Good to see FEM do an introductory course. Those who get good at JavaScript seem to have a very bright future ahead of them, especially those that learn functional programming.

 

I must add Kyle also echos the fact that classes are bad news, he prefers factory functions for re-use. He mentions this in his Advanced JavaScript course when a student pops him the question.

Edited by rbrtsmith

  • Author

"Those who get good at JavaScript seem to have a very bright future". And good salary))

Agree on 100%! I feel exactly the same.

Not a one time today i was ask about Angular.js knowledge. I am very sad. I feel that i must start learning this framework shortly. But now i need a time to go deeper inside list of js skills and courses shown in this topic.

"Those who get good at JavaScript seem to have a very bright future". And good salary))

Agree on 100%! I feel exactly the same.

Not a one time today i was ask about Angular.js knowledge. I am very sad. I feel that i must start learning this framework shortly. But now i need a time to go deeper inside list of js skills and courses shown in this topic.

 

I've already said stop worrying about frameworks. Just focus on JS for now. Frameworks come and go. The language will be around a long time. Angular may well be obselete in 2 years for all we know, then you'd have wasted your time in learning it. Once you know JS properly then picking up a framework is easy.

Edited by rbrtsmith

  • Author

Agree! That's why i focus on vanilla js for now and spend much time for learning.
.

 

I've already said stop worrying about frameworks. Just focus on JS for now. Frameworks come and go. The language will be around a long time. Angular may well be obselete in 2 years for all we know, then you'd have wasted your time in learning it. Once you know JS properly then picking up a framework is easy.

 

Couldn't agree more, frameworks come and go. I've seen more hype about React this year than Angular.

 

Couldn't agree more, frameworks come and go. I've seen more hype about React this year than Angular.

 

I've also seen a lot of hype about it. In a year or so there'll be a flood of jobs requiring knowledge in it.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.