Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pado
Behira Younes
Commits
d04a5a08
Commit
d04a5a08
authored
Oct 26, 2020
by
Ratnadeep Rajendra Kharade
Browse files
fixed typos
parent
eecc7278
Pipeline
#1084
passed with stages
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/index.js
View file @
d04a5a08
...
...
@@ -2,7 +2,7 @@
let
inputObj
=
{
textChoice
:
'
manual
'
,
// choice of text entry initially set as manual. Can have values manual, calculated
text
:
''
,
// User entered text in case of manual
textLength
:
''
,
// number of characters in text. Either from user en
e
tered text or user entered number
textLength
:
''
,
// number of characters in text. Either from user entered text or user entered number
readerLevel
:
''
,
// Value of reader level selected from dropdown
readerCategory
:
''
// Value of reader category selected from dropdown
};
...
...
@@ -122,10 +122,10 @@ function calculateReadingTime() {
console
.
log
(
inputObj
);
// TODO: logic or algorithm for calulating reading time goes here
// TODO: logic or algorithm for cal
c
ulating reading time goes here
// inputObj.textLength has number of characters (number data type)
// inputObj.readerLevel has level of reader (
string
data type)
// inputObj.readerCategory has category of reader (
string
data type)
// inputObj.readerLevel has level of reader (
number
data type)
// inputObj.readerCategory has category of reader (
number
data type)
// example calculation
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment