Genre not found
Artist not found
Album not found
Song not found

javascript void;
(BTS) Lyrics


We have lyrics for these tracks by (BTS):

(Boy In Luv) [Jungkook] Doego…
(FIRE) 불타오르네 Fire Fire Fire Fire When I wake up in my room 난 뭣도 없지 …
Am I Wrong (Am I wrong?) (Falling in love with you) (Tell me, am I…
Boy In Luv Doegopa neoui oppa Neoui sarangi nan neomu gopa Doegopa ne…
BTS Cypher PT.1 “이름, 이름!” sorry bae “발음, 발음!” sorry bae “딕션, 딕션, 딕션!” sorr…
Butterfly 아무것도 생각하지 마 넌 아무 말도 꺼내지도 마 그냥 내게 웃어줘 난 아직도…
Coffee [Jungkook]Baby baby geudaeneun caramel macchiato Yeojeonhi n…
I NEED U Fall (everything) Fall (everything) Fall (everything) 흩어지…
N.O Yo 나에겐 BTS We dropped second ball, CS We are revolution Then…
No More Dream 얌마 니 꿈은 뭐니 (뭐니) 얌마 니 꿈은 뭐니 (뭐니) 얌마 니…
OUTRO : House Of Cards 또 위태로워 또 위험해 So bad (why) 우린 yeah 더 버티기도 지탱하기도 So…
Save ME 난 숨쉬고 싶어 이 밤이 싫어 이젠 깨고 싶어 꿈속이 싫어 내…
Whalien 52 The most lonely creature in the world, eh Do you wanna…
상남자 되고파 너의 오빠 너의 사랑이 난 너무 고파 되고파 너의 오빠 널 갖고…

The lyrics can frequently be found in the comments below, by filtering for lyric videos or browsing the comments in the different videos below.
Most interesting comment from YouTube:

Steve Griffith

void is used to have functions treated like expressions. That means that they won't return a value. Sometimes you have a function that you don't need anything to be returned from. In cases like this, you can put void in front of the call to explicitly say that you don't need anything back.
The most common use case was to put "void" in front of other code that you are running from inside an HTML anchor tag. <a href="javascript: void myFunc( )">
javascript: is the protocol.
myFunc( ) is the code that I want to run.
void tells the browser to treat the function like an expression. Nothing(undefined) gets returned and the link doesn't go anywhere.
If you are going to be altering styles with JavaScript you can do that in any function. You don't need to use void. A best practice would be to group all your style or DOM manipulations into functions on their own. Then you could call the functions with void in front of the call to explicitly say that nothing is expected back from the function. The return value will be undefined. Eg:
function one( ){
//do somethings
//do more things
void myFunctionToChangeStyles( );
}
Here I am calling my function and saying that I don't care about the result. Just pretend that it is an expression that has no return value.
You can also put them in front of IIFEs (I have a video on these too) if the function is not returning anything.
void function( ){
//do something
}( );
This example is the same as:
(function( ){
//do something
})( );



All comments from YouTube:

Yarik83Men

+++

rot rose

Thank you very much for the explanation of this abstract subject, it may take some time for me to really understand it, but I will continue.

Maximilian

Nice microwave sounds ;) Still, very useful video. thanks!

Maximilian

@Steve Griffith I guess I'll keep going then! thanks again.

Steve Griffith

@Maximilian Learning how to program does take time. There is no alternative to this. HTML and CSS are very visual things. You can see the screen change as you update things. With programming you are dealing with a lot of abstract concepts. It takes time and practice to get them straight in your head. You are learning a series of tools. Eventually you will have enough tools that you can build whole projects.
2 months is nothing. I've been programming for 30+ years and I'm still learning.

Maximilian

@Steve Griffith I've been programming for around 2 months now, got my html and css down. However, with the past couple of weeks learning JS I feel like... it hasn't clicked yet. Takes me ages to read code and get what's going on. Does that just come with time? Really want to actually understand what I'm doing rather than just blagging it when I write JS. Too much trial and error going on for my liking!

Steve Griffith

yeah. Hard to keep the family out of the kitchen when I'm recording.

Kuldeep Kr

hi, can you elaborate the use-case of void you were talking about in the last of your video. How to use void operator to style any page without affecting other things.

Rahul Dubey

@Steve Griffith thnx my doubt is clear after reading your reply

Steve Griffith

void is used to have functions treated like expressions. That means that they won't return a value. Sometimes you have a function that you don't need anything to be returned from. In cases like this, you can put void in front of the call to explicitly say that you don't need anything back.
The most common use case was to put "void" in front of other code that you are running from inside an HTML anchor tag. <a href="javascript: void myFunc( )">
javascript: is the protocol.
myFunc( ) is the code that I want to run.
void tells the browser to treat the function like an expression. Nothing(undefined) gets returned and the link doesn't go anywhere.
If you are going to be altering styles with JavaScript you can do that in any function. You don't need to use void. A best practice would be to group all your style or DOM manipulations into functions on their own. Then you could call the functions with void in front of the call to explicitly say that nothing is expected back from the function. The return value will be undefined. Eg:
function one( ){
//do somethings
//do more things
void myFunctionToChangeStyles( );
}
Here I am calling my function and saying that I don't care about the result. Just pretend that it is an expression that has no return value.
You can also put them in front of IIFEs (I have a video on these too) if the function is not returning anything.
void function( ){
//do something
}( );
This example is the same as:
(function( ){
//do something
})( );

More Comments

More Videos