Coder Social home page Coder Social logo

170509's Introduction

17-05-09

什麼是 Camel 命名法? lower camel case: firstName; upper camel case: FirstName var = varible, string, boolean = true, false Number("122.5") convert to number; Number("122.5 years") output NAN; string.substr(start, length); string.indexOf(searchvalue, start) Operators https://www.w3schools.com/jsref/jsref_operators.asp var y = 5; var x = ++y; //Prefix Increment //++y //x=y document.write = y ==> 6 document.write = x ==> 6

var y = 5; var x = --y; //Prefix Decrement //--y //x=y document.write = y ==> 4 document.write = x ==> 4

var y = 5; var x = y++; //Postfix Increment //x=y //y++ document.write = y ==> 6 document.write = x ==> 5

var y = 5; var x = y--; //Postfix Decrement //x=y //y-- document.write = y ==> 4 document.write = x ==> 5

if (condition) { block of code to be executed if the condition is true } else { block of code to be executed if the condition is false }

difference b/w continue & break

for (statement 1; statement 2; statement 3) { code block to be executed } Statement 1 is executed before the loop (the code block) starts. i = 0;
Statement 2 defines the condition for running the loop (the code block). i < 5; Statement 3 is executed each time after the loop (the code block) has been executed. i++

170509's People

Contributors

mandytang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.