javascript program with testing jasmine

ISBN - International Standard Book Number


There are two ISBN standards: ISBN-10 and ISBN-13.

Support for ISBN-13 is essential, whereas support

for ISBN-10 is optional.

Here are some valid examples of each:

ISBN-10: 0471958697

0 471 60695 2



ISBN-13: 9780470059029

978 0 471 48648 0




ISBN-10 is made up of 9 digits plus a check digit (which

may be 'X') and ISBN-13 is made up of 12 digits plus a

check digit. Spaces and hyphens may be included in a code,

but are not significant. This means that 9780471486480 is

equivalent to 978-0-471-48648-0 and 978 0 471 48648 0.

The check digit for ISBN-10 is calculated by multiplying

each digit by its position (i.e., 1 x 1st digit, 2 x 2nd

digit, etc.), summing these products together and taking

modulo 11 of the result (with 'X' being used if the result

is 10).

The check digit for ISBN-13 is calculated by multiplying

each digit alternately by 1 or 3 (i.e., 1 x 1st digit,

3 x 2nd digit, 1 x 3rd digit, 3 x 4th digit, etc.), summing

these products together, taking modulo 10 of the result

and subtracting this value from 10, and then taking the

modulo 10 of the result again to produce a single digit.


Create a function that takes a string and returns true

if that is a valid ISBN-13 and false otherwise. Also, return true if the string is a valid ISBN-10.

Also, write unit tests in Jasmine JavaScript and pass all.

Link to understand ISBN: [login to view URL]

Квалификация: Jasmine Javascript, Javascript

Показать больше javascript program inputting integers, sample php javascript program, program testing com ports, jasmine api testing, generate jasmine tests, jasmine tutorial, jasmine add test, jasmine test dom manipulation, jasmine html test, run jasmine tests, jasmine js, javascript program calculate number days date, javascript pdf form custom calculation, program example loan calculation formula, javascript program calculates customers order, write javascript program allows user input integers, javascript program creates constructor function named automobile, create html document includes javascript program creates constructor function named automobile document headinclude properties o, google maps api javascript great circle distance calculation points driving, horizontal scrolling web page javascript program

О работодателе:
( 1 отзыв ) Riverside, United States

ID проекта: #18783252

3 фрилансеров(-а) в среднем готовы выполнить эту работу за $6/час


Dear sir, Thanks for your job posting. Please check my profile first. [login to view URL] If you can check my profile, you will know my skill well. I have read your job posting and I have rich experiences in the Больше

$5 USD / час
(17 отзывов(-а))

Hello, I am very interested to your job. Although I am a new freelancer but I have over 15 years of experiences in developing websites and app. Briefly I am a versatile and relevant with all project. If you want me Больше

$5 USD / час
(14 отзывов(-а))

Hi, I am a senior js developer. I have solid skills and experience in javascript development. Fortunately I also have experience in working on Book Numbering apps. So I understand what you want. I can write script Больше

$8 USD / час
(3 отзывов(-а))