0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

js setTimeout

Last updated at Posted at 2019-09-22

構文

  • var timeoutID = scope.setTimeout(function[, delay, param1, param2, ...]);

引数

  • function
    • タイマーが満了した後に実行したい関数
  • delay
    • ミリ秒単位でfunctionに待ち時間を作るための数値
  • param1, ..., paramN
    • functionに渡す引数

function greeting(name) {
  console.log('Hello,' + name);
}
  
setTimeout(greeting, 3000, 'World');
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?