In this tutorial I go over a super simple way to make your own library that is really similar to jQuery. I hope you like it! Please subscribe if you found this helpful!
Original source
In this tutorial I go over a super simple way to make your own library that is really similar to jQuery. I hope you like it! Please subscribe if you found this helpful!
Original source
19 responses to “How to build your own JavaScript library!”
Sound quality did allow me to complete the video.
I've never disliked a video before, I simply can't be bothered, but holy fuck that first noise at 1:07 mate, that's just not cool, I think my eardrum just exploded….
What code editor do you use?
Stopped watching this video cause audio is fucked!
I love Your video very helpful please make more video ..
and how can i make background changer function
WTF I can't hear anymore
damn mic… please fix it before !!
mute your audio's, Armgadon is coming…
Nice one by the way
Thanks for this tutorial.
I have a question, in jquery if we write console.log($('.anything')) it will return the DOM element of any html tag has class name (anything). here in your video you did it with 2 steps which is name of the function and then you called the object name to get the elements. so how we can do it like jquery 1 step??!!
Very simple, clear and helpful explanation! Really well done!
Indeed, knowing the basis will be easier to make things more complex.
I am waiting for Angular js tutorials like this.
!!*Thank Your*!!
nice.
Nice thank you
Fuck your mic.
Thanks man. I was working on my own library for the fun to put my name in the code. I'll be using your idea. Thx a lot
i hate this this is not working this is like the worst and all videos like this do not work so stop making them stop it
help me pls here is my code
function _(selector){
var self = {};
self.selector = selector;
self.element = document.querySelector(self.selector);
self.html = function()
{
return self.element;
}
return self;
}
I have a problem with the on… method, it's not working at all 🙁
in self.element what is element?
Nice One, But why not using this instead of creating object variable ?
and btw, use querySelectorAll()… querySelector() just returns the first occurrence of the element in the DOM.