“JavaScript” Respostas de código

JavaScript

function world(params){
 	//Code to be executed when the function is called. 
}
world()

//Explaination
//'world' in the function is the name of the function.
//There are brackets after function name. Those are use to push parameters
//The forth line Calls the function named 'world'
Ved

JavaScript

let str = "12345.00";
str = str.substring(0, str.length - 1);
Bored Bison

JavaScript

/**
* Delay for a number of milliseconds
*/
function sleep(delay) {
    var start = new Date().getTime();
    while (new Date().getTime() < start + delay);
}
Roman Frolov

JavaScript

JavaScript, often abbreviated JS, is a programming language that is one
of the core technologies of the World Wide Web, alongside HTML and CSS.
Over 97% of websites use JavaScript on the client side for web page behavior, 
often incorporating third-party libraries.
Tiny Coders

JavaScript

Take part in a 5v5 team based fire fight across a variety of maps spanning across the globe.

Earn in-match money by eliminating enemies and playing objectives, which you can use to buy new weapons, gear and grenades at the start of each round.

Press B to open buy menu at spawn, press N to open menu.

Enjoy FPS games? We've made four other FPS games you can play!
Check them out: https://www.roblox.com/My/Groups.aspx?gid=2613928

If you see [LIVE] in the title, we're streaming on the Twitch Channel below!

JavaScript

const ButtonNav = (props) => {
  const links = document.querySelector("#oi");
  function hoverHandler() {
    links.classList.add(styles.bigger);
  }

  const [fix, setFix] = useState(false);

  function setFixed() {
    if (window.scrollY >= 1) {
      setFix(true);
      const navbar = document.querySelector(`.${styles.navbar}`);
      navbar.classList.add(styles.sticky);
    } else {
      setFix(false);
    }
  }

  window.addEventListener("scroll", setFixed);

  const Circle = () => {
    return (
      <svg height="60" width="60">
        <circle cx="50" cy="50" r="10" />
      </svg>
    );
  };
  return (
    <div className={props.class + " " + styles.navbar}>
      <Link id="oi">
        <Circle />
      </Link>

      <Link>
        <Circle />
      </Link>
      <Link>
        <Circle />
      </Link>
    </div>
  );
};
Jonathan Jon

JavaScript

aler("hel me"9
Francy Suzuki

JavaScript

#include <conio.h>

/*function declaration
	* name		: getBinary
	* Desc		: to get binary value of decimal number
	* Parameter	: int -integer number
	* return	: void
*/
void getBinary(int);

int main()
{
    int num=0;
    printf("Enter hexadecimal number :");
    scanf("%x",&num);
    printf("\nBinary value of %d is =",num);
    getBinary(num);
    return 0;
}

/*Function definition : getBinary()*/
void getBinary(int n)
{
    int loop;
    /*loop=15 , for 16 bits value, 15th bit to 0th bit*/
    for(loop=15; loop>=0; loop--)
    {
        if( (1 << loop) & n)
            printf("1");
        else
            printf("0");
    }
}
Smiling Snail

JavaScript

jefblpepre
camdcimgtc
oivokprjsm
pbwasqroua
rixilelhrs
wolcqlirpc
screeaumgr
alxhpburyi
jalaycalmp
clojurermt
Ashamed Addax

JavaScript

//javascript loop array//
Nasty Narwhal

Respostas semelhantes a “JavaScript”

Perguntas semelhantes a “JavaScript”

Procure respostas de código populares por idioma

Procurar outros idiomas de código