js學習過程備忘

2021-07-29 11:15:21 字數 1676 閱讀 7121

var firstnamelength = 0; var firstname = "ada"; firstnamelength =

firstname.length;

運算結果:firstnamelength = 8

var firstletteroffirstname = "";

var firstname = "ada";

firstletteroffirstname = firstname[0];

結果 firstletteroffirstname = a

function

myfunction

() myfunction();

通過函式名稱myfunction加上小括號呼叫function函式,每次呼叫函式時它會列印出訊息的「hi world」到開發的控制台上。所有的大括號之間的**將在每次函式呼叫時執行。

function

myfunction

(a,b)

myfunction

(2,3);

這裡的a,b就是名為myfunction的函式的parameters(引數/形參),2,3就是名為myfunction的函式的實參,實參決定形參真正的值

function

plusthree

(num)

var answer = plusthree(5); // 8

plusthree帶有乙個為num的引數並返回(returns)乙個等於num+3的值,

function

mytest

(val)

// only change code above this line //

return answer;

}

有多個case的時候

function

mytest

(val)

// only change code above this line

return answer;

}

count       change  cards

+1 2, 3, 4, 5, 6

0 7, 8, 9

-110, 'j', 'q', 'k','a'

var count = 0;

function cc(card) else

if (card <= 9) else

if (count

<= 0) else

// only change code above this line

}

// setup

var myobj = ;

function

checkobj

(checkprop)

return

"not found";

}// test your code by modifying these values

checkobj("house");

敏捷過程備忘

1 當開始研發新產品或者已有產品的新模組時,由於各方面的原因,整個團隊 沒有能力在sprint 的開始就做出乙份非常詳實的計畫,因此,採用 照明彈 策略 絕對不失為乙個好辦法。2 對於每乙個story,要盡可能了解它的需求。3 在開發過程中,為了提高交流的效率,要盡量避免把精力浪費在不必要的文 檔上...

PL SQL儲存過程備忘

嗯,好久不寫儲存過程了,最近有乙個業務用資料庫的儲存過程來實現比較妥當,於是再次接觸了一下,下面是一些記錄,以便以後翻查 1 如何定義乙個儲存過程 下面是乙個簡單的儲存過程定義,實現了將 hello 列印出來 create or replace procedure p test p start ti...

mysql儲存過程相關備忘

1.匯出儲存過程,對儲存過程進行備份 mysqldump h 127.0.0.1 u root p n t d r triggers false my db name c bakproc.sql 2.獲取當前日期的年月日 date format now y date format now m dat...